plain

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 2 Imported by: 0

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 TitleCase

func TitleCase(content string) string

func TitleCaseBytes

func TitleCaseBytes(input []byte) []byte

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

Jump to

Keyboard shortcuts

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