emicklei / go-restful

package for building REST-style Web Services using Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swagger example does not use go-restful/v3

bokunodev opened this issue · comments

swagger example does not use go-restful/v3 and go-restful-swagger12 is not compatible with go-restful/v3

cannot use absensiNext.Container.RegisteredWebServices() (value of type []*"github.com/emicklei/go-restful/v3".WebService) as []*"github.com/emicklei/go-restful".WebService value in struct literal

@bokunodev you should look at https://github.com/emicklei/go-restful/tree/v3/examples/openapi instead.
The swagger example is there for those that are using the older non-v3 versions. Maybe I will delete it...

i see, thanks.
i just clicked on the link Code examples use v3. so i thought it was compatible with v3.

good point, I will revist this