WorldLink
2019-05-24 16:43
go: finding github.com/kataras/golog latest go: finding github.com/flosch/pongo2 latest go: finding github.com/eknkc/amber latest go: finding github.com/klauspost/compress/gzip latest go: finding github.com/Shopify/goreferrer latest go: finding github.com/iris-contrib/formBinder latest go: golang.org/x/tools@v0.0.0-20181221001348-537d06c36207: unrecognized import path "golang.org/x/tools" (https fetch: Get https://golang.org/x/tools?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) go: golang.org/x/net@v0.0.0-20181220203305-927f97764cc3: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) go: golang.org/x/net@v0.0.0-20181023162649-9b4f9f5ad519: unrecognized import path "golang.org/x/net" (https fetch: Get https://golang.org/x/net?go-get=1: dial tcp 216.239.37.1:443: i/o timeout) go: error loading module requirements
代码
package main import ( "github.com/kataras/iris" ) func main() { app := iris.New() app.Get("/", func(ctx iris.Context) { ctx.Write([]byte("Hello world")) }) app.Run(iris.Addr(":8880"),iris.WithCharset("UTF8")) }
包管理工具vgo
已经解决 网络不好好多依赖没有安装完 话说这iris依赖也太多了吧
iris+xorm Go语言开发球星库
7895 学习 · 51 问题
相似问题
回答 1
回答 1