url

package
v0.0.0-...-e7f8917 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exports = map[string]interface{}{
	"_name": "net/url",

	"queryEscape":   url.QueryEscape,
	"queryUnescape": url.QueryUnescape,

	"URL":             qlang.StructOf((*url.URL)(nil)),
	"parse":           url.Parse,
	"parseRequestURI": url.ParseRequestURI,
	"Userinfo":        qlang.StructOf((*url.Userinfo)(nil)),
	"user":            url.User,
	"userPassword":    url.UserPassword,
}

Exports is the export table of this module.

Functions

This section is empty.

Types

type Values

type Values url.Values

Values maps a string key to a list of values. It is typically used for query parameters and form values. Unlike in the http.Header map, the keys in a Values map are case-sensitive.

func (*Values) Add

func (v *Values) Add(key, value string)

Add adds the value to key. It appends to any existing values associated with key.

func (*Values) Del

func (v *Values) Del(key string)

Del deletes the values associated with key.

func (*Values) Encode

func (v *Values) Encode() string

Encode encodes the values into “URL encoded” form ("bar=baz&foo=quux") sorted by key.

func (*Values) Get

func (v *Values) Get(key string) string

Get gets the first value associated with the given key. If there are no values associated with the key, Get returns the empty string. To access multiple values, use the map directly.

func (*Values) Set

func (v *Values) Set(key, value string)

Set sets the key to value. It replaces any existing values.

Jump to

Keyboard shortcuts

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