query

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(vals Values) string

Encode returns the standard URL encoding of vals.

Types

type Values

type Values map[string][]string

Values is a query multimap. Every key maps to a list, including keys with zero or one value.

func Clone

func Clone(src map[string][]string) Values

Clone returns an independent copy of a query multimap.

func FromURL

func FromURL(raw string) (Values, error)

FromURL parses the query component of raw. It does not trim or otherwise repair the URL.

func Parse

func Parse(raw string) (Values, error)

Parse parses raw query text. One leading question mark is syntax and is removed; all other bytes, including whitespace, are data.

Jump to

Keyboard shortcuts

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