本地使用的go版本是 go version go1.14.6 windows/amd64
安装完成和启动程序是报错:
# github.com/kataras/iris/view
E:\WebSite\Go\pkg\mod\github.com\kataras\iris@v0.0.2\view\blocks.go:76:37: undefined: blocks.AssetFunc
E:\WebSite\Go\pkg\mod\github.com\kataras\iris@v0.0.2\view\blocks.go:76:66: undefined: blocks.AssetNamesFunc
E:\WebSite\Go\pkg\mod\github.com\kataras\iris@v0.0.2\view\blocks.go:77:10: s.Engine.Assets undefined (type *blocks.Blocks has no field or method Assets)
希望帮忙看看,初学者。
解决办法:
go get github.com/kataras/iris/v12@master
问题地址:
https://github.com/kataras/iris/issues/1646
#1