url

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLNotAbsolute  = "URL is not absolute"
	InvalidURL      = "Invalid URL"
	InvalidBaseURL  = "Invalid base URL"
	InvalidHostname = "Invalid hostname"
)
View Source
const ModuleName = "url"

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *goja.Runtime)

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

Types

type SearchParam added in v0.1.5

type SearchParam struct {
	Name  string
	Value string
}

func (*SearchParam) Encode added in v0.1.5

func (sp *SearchParam) Encode() string

type SearchParams added in v0.1.5

type SearchParams []SearchParam

func (SearchParams) Encode added in v0.1.5

func (s SearchParams) Encode() string

func (SearchParams) Len added in v0.1.5

func (s SearchParams) Len() int

func (SearchParams) Less added in v0.1.5

func (s SearchParams) Less(i, j int) bool

func (SearchParams) String added in v0.1.5

func (s SearchParams) String() string

func (SearchParams) Swap added in v0.1.5

func (s SearchParams) Swap(i, j int)

type UrlSearchParams added in v0.1.5

type UrlSearchParams nodeURL

Jump to

Keyboard shortcuts

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