xurl

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(address string) string

Address unsures that address contains localhost as host if non specified.

func CleanPath

func CleanPath(s string) string

CleanPath cleans path from the url.

func HTTP

func HTTP(s string) string

HTTP unsures that s url contains HTTP protocol identifier.

func HTTPEnsurePort

func HTTPEnsurePort(s string) string

HTTPEnsurePort ensures that url has a port number suits with the connection type.

func IsHTTP

func IsHTTP(address string) bool

func IsLocalPath

func IsLocalPath(address string) bool

IsLocalPath checks if given address is a local fs path or a URL.

func TCP

func TCP(s string) string

TCP unsures that s url contains TCP protocol identifier.

func WS

func WS(s string) string

WS unsures that s url contains WS protocol identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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