sets of Afrostream API for golang
you need golang 1.6 you need to set your $GOPATH env var (assuming ~/go here.)
cd $GOPATH/src
mkdir -p $GOPATH/src/github.com/afrostream
cd $GOPATH/src/github.com/afrostream
git clone [email protected]:Afrostream/afrostream-go-lib.git
val := env.Read(key)
val := env.ReadAsUint(key)
val := env.ReadAsUint16(key)
log.Log(log.ERROR, "printed string: %s", "bouh !")
using "echo" engine
server := server.New()
server.engine.GET("/hello-world", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
server.Spawn("8000")