urlinterfaces

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package urlinterfaces contains internal code representing the IDL interfaces in the URL API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL interface {
	fmt.Stringer
	Href() string
	SetHref(string)
	Origin() string
	Protocol() string
	SetProtocol(string)
	Username() string
	SetUsername(string)
	Password() string
	SetPassword(string)
	Host() string
	SetHost(string)
	Hostname() string
	SetHostname(string)
	Port() string
	SetPort(string)
	Pathname() string
	SetPathname(string)
	Search() string
	SetSearch(string)
	SearchParams() URLSearchParams
	Hash() string
	SetHash(string)
	ToJSON() (string, error)
}

type URLSearchParams

type URLSearchParams interface {
	fmt.Stringer
	Size() int
	Append(string, string)
	Delete(string)
	DeleteValue(string, string)
	Get(string) (string, bool)
	GetAll(string) []string
	Has(string) bool
	HasValue(string, string) bool
	Set(string, string)
	Sort()
	All() iter.Seq2[string, string]
}

Jump to

Keyboard shortcuts

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