Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility of version 4 #29

Closed
jimfilippou opened this issue Mar 25, 2020 · 1 comment
Closed

Incompatibility of version 4 #29

jimfilippou opened this issue Mar 25, 2020 · 1 comment

Comments

@jimfilippou
Copy link

Cannot use 'echoSwagger.WrapHandler' (type "github.com/labstack/echo/v4".HandlerFunc) as type "github.com/labstack/echo".HandlerFunc 

Why is there that warning when i do
e.GET("/docs/*", echoSwagger.WrapHandler) ?

@jimfilippou
Copy link
Author

Cannot use 'echoSwagger.WrapHandler' (type "github.com/labstack/echo/v4".HandlerFunc) as type "github.com/labstack/echo".HandlerFunc 

Why is there that warning when i do
e.GET("/docs/*", echoSwagger.WrapHandler) ?

Update the imports to github.com/labstack/echo/v4 instead of github.com/labstack/echo.

I'm talking to myself https://www.youtube.com/watch?v=lvs68OKOquM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant