url

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeForm

func EncodeForm(values map[string]string) string

func Escape

func Escape(s string) string

func String

func String(b Builder) string

func Unescape

func Unescape(s string) (string, error)

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func New

func New(base string) Builder

func Param

func Param(b Builder, name string, value any) Builder

type Parsed

type Parsed struct {
	Scheme   string
	Host     string
	Path     string
	Fragment string
	Params   map[string]string
	Raw      string
}

func Parse

func Parse(s string) (Parsed, error)

type ParsedMulti

type ParsedMulti struct {
	Scheme   string
	Host     string
	Path     string
	Fragment string
	Params   map[string][]string
	Raw      string
}

func ParseMulti

func ParseMulti(s string) (ParsedMulti, error)

Jump to

Keyboard shortcuts

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