GoAdmin Theme does not implement

更新日期: 2020-06-06 阅读次数: 2780 字数: 74 分类: golang

升级了 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

果然解决了。

tags: GOADMIN

关于作者 🌱

我是来自山东烟台的一名开发者,有敢兴趣的话题,或者软件开发需求,欢迎加微信 zhongwei 聊聊, 查看更多联系方式