...

Package urlx

import "github.com/ory/go-convenience/urlx"
Overview
Index

Overview ▾

func AppendPaths

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

AppendPaths appends the provided paths to the url.

func Copy

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

Copy creates returns a copy of the provided url.URL pointer.

func SetQuery

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

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