Documentation
¶
Index ¶
- type URL
- func (u *URL) GetFragment() string
- func (u *URL) GetHost() string
- func (u *URL) GetHostname() string
- func (u *URL) GetPath() string
- func (u *URL) GetPathLastPart() string
- func (u *URL) GetPathParts() []string
- func (u *URL) GetPort() string
- func (u *URL) GetQuery() url.Values
- func (u *URL) GetQueryString() string
- func (u *URL) GetRawQuery() string
- func (u *URL) GetScheme() string
- func (u *URL) GetSuffix() string
- func (u *URL) GetUser() *url.Userinfo
- func (u *URL) Unwrap() *url.URL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct { Raw string // contains filtered or unexported fields }
func (*URL) GetFragment ¶
GetFragment returns the fragment without '#'
func (*URL) GetHostname ¶
GetHostname returns u.GetHost(), stripping any valid port number if present.
If the result is enclosed in square brackets, as literal IPv6 addresses are, the square brackets are removed from the result.
func (*URL) GetPathLastPart ¶
func (*URL) GetPathParts ¶
func (*URL) GetPort ¶
GetPort returns the port part of u.GetHost(), without the leading colon.
If u.Host doesn't contain a valid numeric port, Port returns an empty string.
func (*URL) GetQuery ¶
GetQuery parses RawQuery and returns the corresponding values. It silently discards malformed value pairs. To check errors use ParseQuery.
func (*URL) GetQueryString ¶
GetQueryString returns encoded query values, without '?'
TODO: please use GetRawQuery now
func (*URL) GetRawQuery ¶
GetRawQuery returns encoded query values, without '?'