urls

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrInvalidURL          = "urls.invalid_url"
	ErrDNS1035             = "urls.dns1035"
	ErrDNS1123             = "urls.dns1123"
	ErrEndpoint            = "urls.endpoint"
	ErrEndpointEmptyPath   = "urls.endpoint_empty_path"
	ErrEndpointDoubleSlash = "urls.endpoint_double_slash"
)

Variables

This section is empty.

Functions

func CanonicalizeEndpoint added in v0.10.2

func CanonicalizeEndpoint(str string) string

func CanonicalizeEndpointWithTrailingSlash added in v0.31.0

func CanonicalizeEndpointWithTrailingSlash(str string) string

func CheckDNS1035 added in v0.4.0

func CheckDNS1035(str string) error

func CheckDNS1123 added in v0.4.0

func CheckDNS1123(str string) error

func ErrorDNS1035 added in v0.4.0

func ErrorDNS1035(provided string) error

func ErrorDNS1123 added in v0.4.0

func ErrorDNS1123(provided string) error

func ErrorEndpoint added in v0.10.0

func ErrorEndpoint(provided string) error

func ErrorEndpointDoubleSlash added in v0.10.0

func ErrorEndpointDoubleSlash(provided string) error

func ErrorEndpointEmptyPath added in v0.10.0

func ErrorEndpointEmptyPath() error

func ErrorInvalidURL added in v0.4.0

func ErrorInvalidURL(provided string) error

func Join

func Join(str string, strs ...string) string

func Parse added in v0.4.0

func Parse(rawurl string) (*url.URL, error)

func TrimQueryParamsStr added in v0.12.0

func TrimQueryParamsStr(str string) string

func TrimQueryParamsURL added in v0.12.0

func TrimQueryParamsURL(u url.URL) string

func ValidateEndpoint added in v0.10.0

func ValidateEndpoint(str string) (string, error)

func ValidateEndpointAllowEmptyPath added in v0.36.0

func ValidateEndpointAllowEmptyPath(str string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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