Documentation
¶
Index ¶
- func JoinPath(base string, elem ...string) (result string, err error)
- func PathEscape(s string) string
- func PathUnescape(s string) (string, error)
- func QueryEscape(s string) string
- func QueryUnescape(s string) (string, error)
- type Error
- type EscapeError
- type InvalidHostError
- type URL
- func (*URL) AppendBinary(b []byte) ([]byte, error)
- func (*URL) Clone() *URL
- func (*URL) EscapedFragment() string
- func (*URL) EscapedPath() string
- func (*URL) Hostname() string
- func (*URL) IsAbs() bool
- func (*URL) JoinPath(elem ...string) *URL
- func (*URL) MarshalBinary() (text []byte, err error)
- func (*URL) Parse(ref string) (*URL, error)
- func (*URL) Port() string
- func (*URL) Query() Values
- func (*URL) Redacted() string
- func (*URL) RequestURI() string
- func (*URL) ResolveReference(ref *URL) *URL
- func (*URL) String() string
- func (*URL) UnmarshalBinary(text []byte) error
- type Userinfo
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PathEscape ¶
func PathUnescape ¶
func QueryEscape ¶
func QueryUnescape ¶
Types ¶
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (EscapeError) Error() string
type InvalidHostError ¶
type InvalidHostError string
func (InvalidHostError) Error ¶
func (InvalidHostError) Error() string
type URL ¶
type URL struct {
Scheme string
Opaque string
User *Userinfo
Host string
Path string
Fragment string
RawQuery string
RawPath string
RawFragment string
ForceQuery bool
OmitHost bool
}
func ParseRequestURI ¶
func (*URL) EscapedFragment ¶
func (*URL) EscapedPath ¶
func (*URL) MarshalBinary ¶
func (*URL) RequestURI ¶
func (*URL) ResolveReference ¶
func (*URL) UnmarshalBinary ¶
type Userinfo ¶
type Userinfo struct {
// contains filtered or unexported fields
}
func UserPassword ¶
type Values ¶
func ParseQuery ¶
Click to show internal directories.
Click to hide internal directories.