diff --git a/README.md b/README.md index 844f8e00..9e5f7151 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -[![Black Lives Matter](https://iris-go.com/images/blacklivesmatter_banner.png)](https://support.eji.org/give/153413/#!/donation/checkout) + @@ -20,6 +21,22 @@ Iris is a fast, simple yet fully featured and very efficient web framework for G It provides a beautifully expressive and easy to use foundation for your next website or API. +```go +package main + +import "github.com/kataras/iris/v12" + +func main() { + app := iris.New() + + app.Get("/", func(ctx iris.Context) { + ctx.HTML("Hello %s!", "World") + }) + + app.Listen(":8080") +} +``` +
Simple Handler ```go @@ -46,7 +63,7 @@ func main() { } func updateUser(ctx iris.Context) { - id, _ := ctx.Params().Get("id") + id := ctx.Params().Get("id") var req request if err := ctx.ReadJSON(&req); err != nil {