From e43803cdd87f9d922954024af736dbb2b2b7cfc8 Mon Sep 17 00:00:00 2001 From: Rangel Reale Date: Tue, 4 Jul 2023 18:08:38 -0300 Subject: [PATCH] comments --- README.md | 3 ++- example_test.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0afca16..22aff32 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ func ExampleDecode() { data := &Input{} err = inreq.Decode(r, data, - inreq.WithPathValue(inreq.PathValueFunc(func(r *http.Request, name string) (found bool, value any, err error) { + // usually this will be a framework-specific implementation, like "github.com/RangelReale/inreq-path/gorillamux". + inreq.WithPathValue(inreq.PathValueFunc(func(r *http.Request, name string) (found bool, value any, err error) { if name == "deviceid" { return true, "12345", err } diff --git a/example_test.go b/example_test.go index a80bb2f..edbd380 100644 --- a/example_test.go +++ b/example_test.go @@ -39,6 +39,7 @@ func ExampleDecode() { data := &Input{} err = inreq.Decode(r, data, + // usually this will be a framework-specific implementation, like "github.com/RangelReale/inreq-path/gorillamux". inreq.WithPathValue(inreq.PathValueFunc(func(r *http.Request, name string) (found bool, value any, err error) { if name == "deviceid" { return true, "12345", err