From 52bbaf472dc1d755183fc8ec455db8aa10b78f1f Mon Sep 17 00:00:00 2001 From: Manuel Doncel Martos Date: Mon, 18 Nov 2024 13:52:00 +0100 Subject: [PATCH] Update main.go --- examples/nested/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nested/main.go b/examples/nested/main.go index 280547a..1d883a1 100644 --- a/examples/nested/main.go +++ b/examples/nested/main.go @@ -57,7 +57,7 @@ func main() { fmt.Printf("All the address fields:\n%s", w.Body.String()) w = httptest.NewRecorder() - req, _ = http.NewRequest("GET", "/users/manuel?fields=name,surname,address(name,zipcode)", nil) + req, _ = http.NewRequest("GET", "/users/manuel?fields=name,surname,address(number,zipcode)", nil) r.ServeHTTP(w, req) fmt.Printf("Some address fields:\n%s", w.Body.String())