url

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL gUrl.URL

URL wraps around the native golang URL struct to allow for custom methods

func Parse

func Parse(s string) (u URL, err error)

Parse decodes a URL string. Returns error if string is not a legal

func (URL) SetParam

func (u URL) SetParam(key string, val string) URL

SetParam returns a new URL with the given param created or modified if already exists

func (URL) String

func (u URL) String() string

String encodes all URL segments to a fully qualified URL string

Jump to

Keyboard shortcuts

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