Here is the full example end to end for now with workarounds
```
$ ls ../
pkg      src
$ pwd
/Users/csantanapr/dev/whisk/demos/golang/zipexample/src
$ cat main
package main
import (
        log "github.com/Sirupsen/logrus"
)
func Main(params map[string]interface{}) map[string]interface{} {
        // do your work
        name, ok := params["name"].(string)
        if !ok {
                name = "stranger"
        }
        msg := make(map[string]interface{})
        msg["body"] = "Hello, " + name + "!"
        // log in stdout or in stderr
        log.Println("name=%s\n", name)
        // encode the result back in json
        return msg
}
$ GOPATH="$PWD/../" go get github.com/Sirupsen/logrus

$ ls
github.com golang.org main

$ zip -r - * | docker run -i openwhisk/actionloop-golang-v1.11 -compile main > 
../main.zip

$ bx wsk action update gozip ../main.zip --docker 
openwhisk/actionloop-golang-v1.11
ok: updated action gozip

$ bx wsk action invoke gozip -r -p name Carlos
{
    "body": "Hello, Carlos!"
}

[ Full content available at: 
https://github.com/apache/incubator-openwhisk-runtime-go/issues/52 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to