{"modulePath":"github.com/oapi-codegen/oapi-codegen-exp/experimental","version":"v0.0.0-20260413235603-d24950bd28cc","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package params\n\n## Functions\n\n```go\nfunc BindDeepObjectParam(paramName string, queryParams url.Values, dest any) error\n```\nBindDeepObjectParam binds a deepObject-style parameter to a destination. DeepObject style is only valid for query parameters and must be exploded. Objects: ?paramName\\[key1]=value1\u0026paramName\\[key2]=value2 -\u003e struct{Key1, Key2} Nested: ?paramName\\[outer]\\[inner]=value -\u003e struct{Outer: {Inner: value}}\n\n```go\nfunc BindFormExplodeParam(paramName string, required bool, queryParams url.Values, dest any) error\n```\nBindFormExplodeParam binds a form-style parameter with explode to a destination. Form style is the default for query and cookie parameters. This handles the exploded case where arrays come as multiple query params. Arrays: ?param=a\u0026param=b -\u003e \\[]string{\"a\", \"b\"} (values passed as slice) Objects: ?key1=value1\u0026key2=value2 -\u003e struct{Key1, Key2} (queryParams passed)\n\n```go\nfunc BindFormParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindFormParam binds a form-style parameter without explode to a destination. Form style is the default for query and cookie parameters. This function handles a single query parameter value (not url.Values). Arrays: a,b,c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: key1,value1,key2,value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindLabelExplodeParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindLabelExplodeParam binds a label-style parameter with explode to a destination. Label style values are prefixed with a dot. Primitives: .value -\u003e \"value\" Arrays: .a.b.c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: .key1=value1.key2=value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindLabelParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindLabelParam binds a label-style parameter without explode to a destination. Label style values are prefixed with a dot. Primitives: .value -\u003e \"value\" Arrays: .a,b,c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: .key1,value1,key2,value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindMatrixExplodeParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindMatrixExplodeParam binds a matrix-style parameter with explode to a destination. Matrix style values are prefixed with semicolons. Primitives: ;paramName=value -\u003e \"value\" Arrays: ;paramName=a;paramName=b;paramName=c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: ;key1=value1;key2=value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindMatrixParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindMatrixParam binds a matrix-style parameter without explode to a destination. Matrix style values are prefixed with ;paramName=. Primitives: ;paramName=value -\u003e \"value\" Arrays: ;paramName=a,b,c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: ;paramName=key1,value1,key2,value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindPipeDelimitedExplodeParam(paramName string, required bool, queryParams url.Values, dest any) error\n```\nBindPipeDelimitedExplodeParam binds a pipeDelimited-style parameter with explode. When exploded, arrays come as multiple query params (same as form explode). Arrays: ?param=a\u0026param=b -\u003e \\[]string{\"a\", \"b\"}\n\n```go\nfunc BindPipeDelimitedParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindPipeDelimitedParam binds a pipeDelimited-style parameter without explode. Pipe-delimited style uses pipe as the separator. Arrays: a|b|c -\u003e \\[]string{\"a\", \"b\", \"c\"}\n\n```go\nfunc BindSimpleExplodeParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindSimpleExplodeParam binds a simple-style parameter with explode to a destination. Simple style is the default for path and header parameters. Arrays: a,b,c -\u003e \\[]string{\"a\", \"b\", \"c\"} (same as non-explode) Objects: key1=value1,key2=value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindSimpleParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindSimpleParam binds a simple-style parameter without explode to a destination. Simple style is the default for path and header parameters. Arrays: a,b,c -\u003e \\[]string{\"a\", \"b\", \"c\"} Objects: key1,value1,key2,value2 -\u003e struct{Key1, Key2}\n\n```go\nfunc BindSpaceDelimitedExplodeParam(paramName string, required bool, queryParams url.Values, dest any) error\n```\nBindSpaceDelimitedExplodeParam binds a spaceDelimited-style parameter with explode. When exploded, arrays come as multiple query params (same as form explode). Arrays: ?param=a\u0026param=b -\u003e \\[]string{\"a\", \"b\"}\n\n```go\nfunc BindSpaceDelimitedParam(paramName string, paramLocation ParamLocation, value string, dest any) error\n```\nBindSpaceDelimitedParam binds a spaceDelimited-style parameter without explode. Space-delimited style uses space as the separator. Arrays: a b c -\u003e \\[]string{\"a\", \"b\", \"c\"}\n\n```go\nfunc BindStringToObject(src string, dst any) error\n```\nBindStringToObject binds a string value to a destination object. It handles primitives, encoding.TextUnmarshaler, and the Binder interface.\n\n```go\nfunc MarshalDeepObject(i any, paramName string) (string, error)\n```\nMarshalDeepObject marshals an object to deepObject style query parameters.\n\n```go\nfunc StyleDeepObjectParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleDeepObjectParam serializes a value using deepObject style. DeepObject style is only valid for query parameters with object values and must be exploded. Objects: paramName\\[key1]=value1\u0026paramName\\[key2]=value2 Nested: paramName\\[outer]\\[inner]=value\n\n```go\nfunc StyleFormExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleFormExplodeParam serializes a value using form style (RFC 6570) with exploding. Form style is the default for query and cookie parameters. Primitives: paramName=value Arrays: paramName=a\u0026paramName=b\u0026paramName=c Objects: key1=value1\u0026key2=value2\n\n```go\nfunc StyleFormParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleFormParam serializes a value using form style (RFC 6570) without exploding. Form style is the default for query and cookie parameters. Primitives: paramName=value Arrays: paramName=a,b,c Objects: paramName=key1,value1,key2,value2\n\n```go\nfunc StyleLabelExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleLabelExplodeParam serializes a value using label style (RFC 6570) with exploding. Label style prefixes values with a dot. Primitives: .value Arrays: .a.b.c Objects: .key1=value1.key2=value2\n\n```go\nfunc StyleLabelParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleLabelParam serializes a value using label style (RFC 6570) without exploding. Label style prefixes values with a dot. Primitives: .value Arrays: .a,b,c Objects: .key1,value1,key2,value2\n\n```go\nfunc StyleMatrixExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleMatrixExplodeParam serializes a value using matrix style (RFC 6570) with exploding. Matrix style prefixes values with ;paramName=. Primitives: ;paramName=value Arrays: ;paramName=a;paramName=b;paramName=c Objects: ;key1=value1;key2=value2\n\n```go\nfunc StyleMatrixParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleMatrixParam serializes a value using matrix style (RFC 6570) without exploding. Matrix style prefixes values with ;paramName=. Primitives: ;paramName=value Arrays: ;paramName=a,b,c Objects: ;paramName=key1,value1,key2,value2\n\n```go\nfunc StylePipeDelimitedExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStylePipeDelimitedExplodeParam serializes a value using pipeDelimited style with exploding. Pipe-delimited style is used for query parameters with array values. Arrays: paramName=a\u0026paramName=b\u0026paramName=c (same as form explode) Note: Only valid for arrays; objects should use other styles.\n\n```go\nfunc StylePipeDelimitedParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStylePipeDelimitedParam serializes a value using pipeDelimited style without exploding. Pipe-delimited style is used for query parameters with array values. Arrays: paramName=a|b|c Note: Only valid for arrays; objects should use other styles.\n\n```go\nfunc StyleSimpleExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleSimpleExplodeParam serializes a value using simple style (RFC 6570) with exploding. Simple style is the default for path and header parameters. Arrays are comma-separated: a,b,c (same as non-explode) Objects are key=value pairs: key1=value1,key2=value2\n\n```go\nfunc StyleSimpleParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleSimpleParam serializes a value using simple style (RFC 6570) without exploding. Simple style is the default for path and header parameters. Arrays are comma-separated: a,b,c Objects are key,value pairs: key1,value1,key2,value2\n\n```go\nfunc StyleSpaceDelimitedExplodeParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleSpaceDelimitedExplodeParam serializes a value using spaceDelimited style with exploding. Space-delimited style is used for query parameters with array values. Arrays: paramName=a\u0026paramName=b\u0026paramName=c (same as form explode) Note: Only valid for arrays; objects should use other styles.\n\n```go\nfunc StyleSpaceDelimitedParam(paramName string, paramLocation ParamLocation, value any) (string, error)\n```\nStyleSpaceDelimitedParam serializes a value using spaceDelimited style without exploding. Space-delimited style is used for query parameters with array values. Arrays: paramName=a b c (space-separated) Note: Only valid for arrays; objects should use other styles.\n\n```go\nfunc UnmarshalDeepObject(dst any, paramName string, params url.Values) error\n```\nUnmarshalDeepObject unmarshals deepObject-style query parameters to a destination.\n\n## Types\n\n```go\ntype Binder interface {\n\tBind(value string) error\n}\n```\nBinder is an interface for types that can bind themselves from a string value.\n\n```go\ntype ParamLocation int\n```\nParamLocation indicates where a parameter is located in an HTTP request.\n\n```go\nconst (\n\tParamLocationUndefined ParamLocation = iota\n\tParamLocationQuery\n\tParamLocationPath\n\tParamLocationHeader\n\tParamLocationCookie\n)\n```\n\n","path":"github.com/oapi-codegen/oapi-codegen-exp/experimental/codegen/internal/runtime/params","name":"params","synopsis":"","isRedistributable":true}
