url

package
v0.0.0-...-8a3c41b Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	// contains filtered or unexported fields
}

func ParseHost

func ParseHost(host string) *Host

func (*Host) Address

func (this *Host) Address() string

func (*Host) Port

func (this *Host) Port() string

func (*Host) String

func (this *Host) String() string

type URL

type URL struct {
	Scheme   string
	Opaque   string    // encoded opaque data
	User     *Userinfo // username and password information
	Host     *Host     // host or host:port
	Path     string
	RawPath  string // encoded path hint (Go 1.5 and later only; see EscapedPath method)
	RawQuery string // encoded query values, without '?'
	Fragment string // fragment for references, without '#'
}

func ParseUrl

func ParseUrl(raw string) (*URL, error)

func (*URL) Query

func (this *URL) Query() Values

type Userinfo

type Userinfo struct {
	// contains filtered or unexported fields
}

func (*Userinfo) Password

func (this *Userinfo) Password() string

func (*Userinfo) String

func (this *Userinfo) String() string

func (*Userinfo) Username

func (this *Userinfo) Username() string

type Values

type Values map[string][]string

func ParseQuery

func ParseQuery(query string) Values

func (Values) Add

func (this Values) Add(k, v string)

func (Values) Get

func (this Values) Get(param string) []string

func (Values) String

func (this Values) String() string

Jump to

Keyboard shortcuts

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