包管理
模块初始化
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"))
}go mod init模块精简
最后更新于