betacraft / yaag

Yet Another ApiDoc Generator (for Golang web apps)
MIT License
288 stars 62 forks source link

cannot use irisyaag.New() #60

Open Tianyaxiaoxiaosheng opened 4 years ago

Tianyaxiaoxiaosheng commented 4 years ago

cannot use irisyaag.New() (type "github.com/kataras/iris/context".Handler) as type "github.com/kataras/iris/v12/context".Handler in argument to api.APIBuilder.Use

toujourser commented 4 years ago

github.com\betacraft\yaag@v1.0.0\irisyaag\middleware.go import中将 "github.com/kataras/iris/context" 改为 "github.com/kataras/iris/v12/context"

Ostaer commented 4 years ago

把go.mod中的yaag的版本号换成最新的commit id 拉取最新版本

kataras commented 4 years ago

@Tianyaxiaoxiaosheng @toujourser @Ostaer Try go get -u github.com/betacraft/yaag@master in your current project's directory, it should be working. The test and example do, take a look at: examples/iris/main.go.