go get -u -v github.com/kataras/iris
package main
import "github.com/kataras/iris"
func main() {
app := iris.Default()
app.Get("/hello", func(ctx iris.Context) {
ctx.JSON(iris.Map{
"say": "hello",
})
})
// listen and serve on http://localhost:8080.
app.Run(iris.Addr("localhost:8080"))
}
Now listening on: http://localhost:8080
Application started. Press CTRL+C to shut down.
[INFO] 2019/06/25 15:06 200 1.0001ms 127.0.0.1 GET /hello