GoAdmin Theme does not implement

发布时间: 2020-06-06 16:30:59 作者: 大象笔记

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

果然解决了。

我是一名山东烟台的开发者,联系作者