1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

Nothing special here

Former-commit-id: af61c47c0462ec4b8d3699e3798c215a3feceb92
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-02-16 22:19:44 +02:00
parent 805ba56863
commit b3bc8e71fb
3 changed files with 18 additions and 6 deletions

5
doc.go
View File

@@ -385,6 +385,7 @@ Static Files
Example code:
package main
import (
@@ -392,8 +393,6 @@ Example code:
"gopkg.in/kataras/iris.v6/adaptors/httprouter"
)
// if your ide cannot find the ./static folder try to build that program and after execute it
// or try to download & run this example via LiteIDE.
func main() {
app := iris.New()
@@ -407,7 +406,7 @@ Example code:
// This will serve the ./static/favicons/iris_favicon_32_32.ico to: 127.0.0.1:8080/favicon_32_32.ico
app.Get("/", func(ctx *iris.Context) {
ctx.HTML(iris.StatusOK, "You should see the favicon now at the side of your browser, if not please refresh or clear the browser's cache.")
ctx.HTML(iris.StatusOK, "You should see the favicon now at the side of your browser.")
})
app.Listen(":8080")