query

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2026 License: BSD-2-Clause Imports: 2 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAll

func AddAll(q url.Values, key string, vals []string)

AddAll appends each value under key, preserving repeated query parameters.

func SetBoolOpt

func SetBoolOpt(q url.Values, key string, v *bool)

SetBoolOpt sets key only when v is non-nil.

func SetBoolTrue

func SetBoolTrue(q url.Values, key string, v *bool)

SetBoolTrue sets key to v, defaulting to true when v is nil.

func SetFloatOpt

func SetFloatOpt(q url.Values, key string, v *float64)

SetFloatOpt sets key only when v is non-nil.

func SetIntOpt

func SetIntOpt(q url.Values, key string, v *int)

SetIntOpt sets key only when v is non-nil.

func SetStrOpt

func SetStrOpt(q url.Values, key, v string)

SetStrOpt sets key only when v is non-empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL