代碼運行時報錯我是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/[email protected]:?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/[email protected]:?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/[email protected]:?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
2019-05-24
已經解決 網絡不好好多依賴沒有安裝完? 話說這iris依賴也太多了吧