Help us shape the future of Go! Take the 2026 Go Developer Survey

xurl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 6 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 struct {
	*url.URL
}

func MustParsef

func MustParsef(format string, args ...any) (result URL)

func (URL) Clone

func (u URL) Clone() URL

func (URL) Equal

func (u URL) Equal(other URL) bool

func (URL) MarshalText

func (u URL) MarshalText() ([]byte, error)

func (URL) PathTo added in v0.3.0

func (u URL) PathTo(target *url.URL) (string, bool)

PathTo is the path of target below u, and false where u does not hold target. A near match, such as https://x.io/ab for https://x.io/a, is false as well, because a caller sends u's credential to target.

func (*URL) UnmarshalText

func (u *URL) UnmarshalText(text []byte) (err error)

Jump to

Keyboard shortcuts

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