fmt

Gerasimos (Makis) Maropoulos 2019-07-24 08:59:32 +03:00
parent 94de79999c
commit a6ab223a9e
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4
2 changed files with 8 additions and 4 deletions

@ -105,4 +105,4 @@ handler := iris.FileServer("./assets", iris.DirOptions {
})
```
Examples can be found at: https://github.com/kataras/iris/tree/v11.2.0/_examples/file-server
Examples can be found at: https://github.com/kataras/iris/tree/master/_examples/file-server

@ -142,7 +142,8 @@ func main() {
none.Method = iris.MethodGet
}
// refresh re-builds the router at serve-time in order to be notified for its new routes.
// refresh re-builds the router at serve-time in order to
// be notified for its new routes.
app.RefreshRouter()
})
@ -153,9 +154,12 @@ func main() {
return
}
// same as navigating to "http://localhost:8080/invisible/iris" when /change has being invoked and route state changed
// same as navigating to "http://localhost:8080/invisible/iris"
// when /change has being invoked and route state changed
// from "offline" to "online"
ctx.Values().Set("from", "/execute") // values and session can be shared when calling Exec from a "foreign" context.
ctx.Values().Set("from", "/execute")
// values and session can be
// shared when calling Exec from a "foreign" context.
// ctx.Exec("NONE", "/invisible/iris")
// or after "/change":
ctx.Exec("GET", "/invisible/iris")