Skip to content

Commit

Permalink
fix: add the iris feat dir correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Saif Ali Aljanahi committed Oct 19, 2024
1 parent 68d20a9 commit 83bcdf7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions _examples/iris/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions _examples/iris/go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
9 changes: 4 additions & 5 deletions _examples/iris/main.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand All @@ -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"))
}

0 comments on commit 83bcdf7

Please sign in to comment.