I think I got it to compile
```
$ GOPATH="$PWD/../" go get github.com/Sirupsen/logrus
$ ls
github.com golang.org main
$ 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
}
$ zip -r - * | docker run -i openwhisk/actionloop-golang-v1.11 -compile main
>binary
```
[ 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]