1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00
Former-commit-id: da3ffd7b32daa12b17ad2863cb55e9d15ec9943a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-07-30 18:02:02 +03:00
parent 04834484ff
commit 970279deb8
6 changed files with 21 additions and 6 deletions

View File

@@ -284,5 +284,10 @@ func main() {
// Last, do not confuse `ctx.Params()` with `ctx.Values()`.
// Path parameter's values can be retrieved from `ctx.Params()`,
// context's local storage that can be used to communicate between handlers and middleware(s) can be stored to `ctx.Values()`.
//
// When registering different parameter types in the same exact path pattern, the path parameter's name
// should differ e.g.
// /path/{name:string}
// /path/{id:uint}
app.Run(iris.Addr(":8080"))
}