diff --git a/_examples/iris/go.mod b/_examples/iris/go.mod index ce30aad..1240d79 100644 --- a/_examples/iris/go.mod +++ b/_examples/iris/go.mod @@ -3,3 +3,4 @@ module github.com/mvrilo/go-redoc/_examples/iris go 1.23.2 require github.com/mvrilo/go-redoc v0.1.5 +require github.com/kataras/iris/v12 v12.2.0 diff --git a/_examples/iris/go.sum b/_examples/iris/go.sum index 0aff6b9..767507a 100644 --- a/_examples/iris/go.sum +++ b/_examples/iris/go.sum @@ -1,5 +1,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/kataras/iris/v12 v12.2.0/go.mod h1:BLzBpEunc41GbE68OUaQlqX4jzi791mx5HU04uPb90Y= github.com/mvrilo/go-redoc v0.1.5 h1:07yjAjUNXXEkC/pd2Yl6DAVjmhMussJsNeOuAAR/8TA= github.com/mvrilo/go-redoc v0.1.5/go.mod h1:Yn92/dqIpYGSl8g2xz1Xq36AO9ENjIsPLbVtz9nVhz8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/_examples/iris/main.go b/_examples/iris/main.go index d8a8e36..40af61e 100644 --- a/_examples/iris/main.go +++ b/_examples/iris/main.go @@ -1,8 +1,8 @@ package iris import ( + "github.com/kataras/iris/v12" "github.com/mvrilo/go-redoc" - "github.com/mvrilo/go-redoc/iris" irisdoc "github.com/mvrilo/go-redoc/iris" ) @@ -15,9 +15,8 @@ func main() { DocsPath: "/docs", } - r := iris.New() - r.Use(irisdoc.New(doc)) - + app := iris.New() + app.Use(irisdoc.New(doc)) println("Documentation served at http://127.0.0.1:8000/docs") - panic(r.Listen(":8000")) + panic(app.Listen(":8000")) }