Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶ added in v0.30.0
type Params struct {
// contains filtered or unexported fields
}
Params struct, containing a slice of KVPairs.
func NewParams ¶ added in v0.30.0
Constructs a new slice of KVPairs with provided keys and values. Input should be in pairs: "key1, value1, key2, value2, key3, value3, ..." Number of elements must be even, otherwise this function panics.
func (Params) Get ¶ added in v0.30.0
Returns the value of the first occurence with the provided key and returns true. If not found, returns empty string and false.
func (Params) QueryEscape ¶ added in v0.30.0
Returns URL encoded params in format "foo=bar&baz=woo".
Click to show internal directories.
Click to hide internal directories.