升级了 GoAdmin 版本,但是 go build 编译时报错:
> go build
# github.com/GoAdminGroup/themes/adminlte
../../../golang/pkg/mod/github.com/!go!admin!group/themes@v0.0.30/adminlte/adminlte.go:43:32: cannot use &Adminlte (type *Theme) as type "github.com/GoAdminGroup/go-admin/template".Template in argument to "github.com/GoAdminGroup/go-admin/template".Add:
*Theme does not implement "github.com/GoAdminGroup/go-admin/template".Template (missing Get403HTML method)
看不懂,索性也升级一下 GoAdminGroup/themes
> go get github.com/GoAdminGroup/themes@latest
go: github.com/GoAdminGroup/themes latest => v0.0.36
果然解决了。
微信关注我哦 👍
我是来自山东烟台的一名开发者,有感兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式