urlx

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 3 Imported by: 114

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPaths added in v0.0.37

func AppendPaths(u *url.URL, paths ...string) (ep *url.URL)

AppendPaths appends the provided paths to the url.

func Copy added in v0.0.37

func Copy(src *url.URL) *url.URL

Copy returns a copy of the input url.

func CopyWithQuery added in v0.0.37

func CopyWithQuery(src *url.URL, query url.Values) *url.URL

CopyWithQuery returns a copy of the input url with the given query parameters

func MustJoin

func MustJoin(first string, parts ...string) string

MustJoin joins the paths of two URLs. Fatals if first is not a URL.

func SetQuery added in v0.0.37

func SetQuery(u *url.URL, query url.Values) (ep *url.URL)

SetQuery appends the provided url values to the URL's query string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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