分享 / 0 / 9 / 创建于 2年前
引入的包是github.com/dgrijalva/jwt-go
pkg\app\jwt.go:38:60: cannot use func(token *jwt.Token) (interface{}, error) {…} (value of type func(token *jwt.Token) (interface{}, error)) as type jwt.Keyfunc in argument to jwt.ParseWithClaims
你把func这的token换个名字看看
github.com/dgrijalva/jwt-go换成github.com/golang-jwt/jwt/v4试试
老哥 想问下这个是什么插件啊?
我要举报该,理由是:
pkg\app\jwt.go:38:60: cannot use func(token *jwt.Token) (interface{}, error) {…} (value of type func(token *jwt.Token) (interface{}, error)) as type jwt.Keyfunc in argument to jwt.ParseWithClaims
你把func这的token换个名字看看
github.com/dgrijalva/jwt-go换成github.com/golang-jwt/jwt/v4试试