Documentation
¶
Overview ¶
Package query provides jargo's shared URL-query helpers. Provider Config types map their optional fields onto url.Values through these small setters, which keep the conditional "omit when unset" logic in one place across providers rather than copied into each package.
Index ¶
- func AddAll(q url.Values, key string, vals []string)
- func SetBoolOpt(q url.Values, key string, v *bool)
- func SetBoolTrue(q url.Values, key string, v *bool)
- func SetFloatOpt(q url.Values, key string, v *float64)
- func SetIntOpt(q url.Values, key string, v *int)
- func SetStrOpt(q url.Values, key, v string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBoolOpt ¶
SetBoolOpt sets key only when v is non-nil.
func SetBoolTrue ¶
SetBoolTrue sets key to v, defaulting to true when v is nil.
func SetFloatOpt ¶
SetFloatOpt sets key only when v is non-nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.