MCPcopy Create free account
hub / github.com/kataras/iris / newApp

Function newApp

_examples/routing/dynamic-path/same-pattern-different-func/main.go:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9}
10
11func newApp() *iris.Application {
12 app := iris.New()
13
14 app.HandleMany(iris.MethodGet, "/ /api/{page:string suffix(.html)}", handler1)
15 app.Get("/api/{name:string suffix(.zip)}", handler2)
16
17 return app
18}
19
20func handler1(ctx iris.Context) {
21 reply(ctx)

Callers 2

mainFunction · 0.70

Calls 3

NewMethod · 0.80
HandleManyMethod · 0.65
GetMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…