From de5c9649748b9bc159204e35f5d15c3294bfcc15 Mon Sep 17 00:00:00 2001 From: Christopher Hunter <8398225+crhntr@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:16:47 -0800 Subject: [PATCH] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00d1c65..3575e2a 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ func execute(http.ResponseWriter, *http.Request, bool, string, int, any) {} You can also map path values from the path pattern to identifiers and pass them to your handler. -Given `{{define "GET /articles/:id ReadArticle(ctx, id)"}}{{end}}`, +Given `{{define "GET /articles/{id} ReadArticle(ctx, id)"}}{{end}}`, You will get a handler generated like this: