Open plingply opened 4 years ago
go version 1.13 two steps below may resolve your question. 1、modify you code (middleware/jwt.go:27:3:) like: ErrorHandler: func(ctx context.Context, err error) 2、also,you need to import "github.com/kataras/iris/v12" rather than "github.com/kataras/iris" in your project
确实很多错误,这两个解决了还有别的问题
iris-gorm/middleware
middleware/jwt.go:27:3: cannot use func literal (type func("github.com/kataras/iris/context".Context, string)) as type "github.com/iris-contrib/middleware/jwt".errorHandler in field value