{"modulePath":"github.com/DreadfulBot/huma","version":"v0.1.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package queryparam\n\nPackage queryparam provides utilities for efficiently working with query parameters in URLs. It focuses on zero allocation URL query parameter lookups.\n\n\tfunc handler(w http.ResponseWriter, r *http.Request) {\n\t\t// Get the value of the `key` query parameter.\n\t\tvalue := queryparam.Get(r.URL.RawQuery, \"key\")\n\t}\n\nNote that this method does not support multiple values for the same key, so using \\`val=1,2,3\\` is preferable to \\`val=1\u0026val=2\u0026val=3\\`.\n\n## Functions\n\n```go\nfunc Get(query, name string) string\n```\nGet a query param by name without any dynamic allocations. For small numbers of query params, it is faster to call this method multiple times than to use \\`url.ParseQuery\\` and then call \\`Get\\` on the resulting \\`url.Values\\`. This method does not support multiple values for the same key, so using \\`val=1,2,3\\` is preferable to \\`val=1\u0026val=2\u0026val=3\\`.\n\n","path":"github.com/DreadfulBot/huma/queryparam","name":"queryparam","synopsis":"Package queryparam provides utilities for efficiently working with query parameters in URLs.","isRedistributable":true}
