Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeUrl ¶
func EscapeUrl(s string, mode EscapingMode) string
EscapeUrl escapes the string so it can be safely placed inside a specs.Url segment, Based on https://github.com/golang/go/blob/4ab1aec00799f91e96182cbbffd1de405cd52e93/src/net/url/url.go#L290
func TitleCaseBytes ¶
func UnEscapeUrl ¶
func UnEscapeUrl(s string, mode EscapingMode) (string, error)
UnEscapeUrl escapes the string so it can be safely placed inside a specs.Url segment, Based on https://github.com/golang/go/blob/4ab1aec00799f91e96182cbbffd1de405cd52e93/src/net/url/url.go#L205
Types ¶
type EscapeError ¶
type EscapeError string
func (EscapeError) Error ¶
func (e EscapeError) Error() string
type EscapingMode ¶
type EscapingMode int
const ( EscapingPath EscapingMode = 1 + iota EscapingPathSegment EscapingHost EscapingZone EscapingUserPassword EscapingQueryComponent EscapingFragment )
type InvalidHostError ¶
type InvalidHostError string
func (InvalidHostError) Error ¶
func (e InvalidHostError) Error() string
Click to show internal directories.
Click to hide internal directories.