diff --git a/_examples/hello-world/main.go b/_examples/hello-world/main.go index ec5787ef..eedffccf 100644 --- a/_examples/hello-world/main.go +++ b/_examples/hello-world/main.go @@ -19,14 +19,14 @@ func main() { // same as app.Handle("GET", "/ping", [...]) // Method: GET // Resource: http://context:8080/ping - app.Get("/ping", func(ctx iris.Context) { + app.Get("/ping", func(ctx context.Context) { ctx.WriteString("pong") }) // Method: GET // Resource: http://localhost:8080/hello app.Get("/hello", func(ctx context.Context) { - ctx.JSON(iris.Map{"message": "Hello iris web framework."}) + ctx.JSON(context.Map{"message": "Hello iris web framework."}) }) // http://localhost:8080