代码运行时报错我是vgo
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