From a6ab223a9ed10e700b07ede1797efab5eff9b531 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Wed, 24 Jul 2019 08:59:32 +0300 Subject: [PATCH] fmt --- File-server.md | 2 +- Routing.md | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/File-server.md b/File-server.md index e90dc22..691af6f 100644 --- a/File-server.md +++ b/File-server.md @@ -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 diff --git a/Routing.md b/Routing.md index 72d997a..a582ce6 100644 --- a/Routing.md +++ b/Routing.md @@ -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")