ivpusic / neo

Go Web Framework
http://ivpusic.github.io/neo/
MIT License
419 stars 43 forks source link

git/ivp/neo 11:43:37 ✖[ERRO] ▶ exit status 1 #43

Open springeye opened 7 years ago

springeye commented 7 years ago

The program does not work properly go version:1.8.3

package main
import (
    "github.com/ivpusic/neo"
)

func main() {
    app := neo.App()

    app.Get("/", func(ctx *neo.Ctx) (int, error) {
        return 200, ctx.Res.Text("I am Neo Programmer")
    })

    app.Start()
}

run command:

 apple@henjue-mac: neo run sync_token_api.go
 git/ivp/neo 11:43:37 ✖[ERRO] ▶ exit status 1