diff --git a/README.md b/README.md index 67e9259..157ad13 100644 --- a/README.md +++ b/README.md @@ -26,12 +26,12 @@ s.Get("/", func(ctx web.Context) error { // Parameter route s.Get("/blog/:post", func(ctx web.Context) error { - return ctx.String(ctx.Get("post")) + return ctx.String(ctx.Request().Param("post")) }) // Wildcard route s.Get("/images/*file", func(ctx web.Context) error { - return ctx.String(ctx.Get("file")) + return ctx.String(ctx.Request().Param("file")) }) s.Run(":8080")