webapi: github.com/gowebapi/webapi/url Index | Files

package url

import "github.com/gowebapi/webapi/url"

Package url defines URLs, domains, IP addresses, the application/x-www-form-urlencoded format.

Source: URL Standard (https://url.spec.whatwg.org/)

Index

Package Files

doc.go url.go

func CreateObjectURL Uses

func CreateObjectURL(blob *file.Blob) (_result string)

func CreateObjectURL2 Uses

func CreateObjectURL2(mediaSource *media.MediaSource) (_result string)

func RevokeObjectURL Uses

func RevokeObjectURL(url string)

type URL Uses

type URL struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: URL

func NewURL Uses

func NewURL(url string, base *string) (_result *URL)

func URLFromJS Uses

func URLFromJS(value js.Wrapper) *URL

URLFromJS is casting a js.Wrapper into URL.

func (*URL) Hash Uses

func (_this *URL) Hash() string

Hash returning attribute 'hash' with type string (idl: USVString).

func (*URL) Host Uses

func (_this *URL) Host() string

Host returning attribute 'host' with type string (idl: USVString).

func (*URL) Hostname Uses

func (_this *URL) Hostname() string

Hostname returning attribute 'hostname' with type string (idl: USVString).

func (*URL) Href Uses

func (_this *URL) Href() string

Href returning attribute 'href' with type string (idl: USVString).

func (*URL) JSValue Uses

func (_this *URL) JSValue() js.Value

func (*URL) Origin Uses

func (_this *URL) Origin() string

Origin returning attribute 'origin' with type string (idl: USVString).

func (*URL) Password Uses

func (_this *URL) Password() string

Password returning attribute 'password' with type string (idl: USVString).

func (*URL) Pathname Uses

func (_this *URL) Pathname() string

Pathname returning attribute 'pathname' with type string (idl: USVString).

func (*URL) Port Uses

func (_this *URL) Port() string

Port returning attribute 'port' with type string (idl: USVString).

func (*URL) Protocol Uses

func (_this *URL) Protocol() string

Protocol returning attribute 'protocol' with type string (idl: USVString).

func (*URL) Search Uses

func (_this *URL) Search() string

Search returning attribute 'search' with type string (idl: USVString).

func (*URL) SearchParams Uses

func (_this *URL) SearchParams() *URLSearchParams

SearchParams returning attribute 'searchParams' with type URLSearchParams (idl: URLSearchParams).

func (*URL) SetHash Uses

func (_this *URL) SetHash(value string)

SetHash setting attribute 'hash' with type string (idl: USVString).

func (*URL) SetHost Uses

func (_this *URL) SetHost(value string)

SetHost setting attribute 'host' with type string (idl: USVString).

func (*URL) SetHostname Uses

func (_this *URL) SetHostname(value string)

SetHostname setting attribute 'hostname' with type string (idl: USVString).

func (*URL) SetHref Uses

func (_this *URL) SetHref(value string)

SetHref setting attribute 'href' with type string (idl: USVString).

func (*URL) SetPassword Uses

func (_this *URL) SetPassword(value string)

SetPassword setting attribute 'password' with type string (idl: USVString).

func (*URL) SetPathname Uses

func (_this *URL) SetPathname(value string)

SetPathname setting attribute 'pathname' with type string (idl: USVString).

func (*URL) SetPort Uses

func (_this *URL) SetPort(value string)

SetPort setting attribute 'port' with type string (idl: USVString).

func (*URL) SetProtocol Uses

func (_this *URL) SetProtocol(value string)

SetProtocol setting attribute 'protocol' with type string (idl: USVString).

func (*URL) SetSearch Uses

func (_this *URL) SetSearch(value string)

SetSearch setting attribute 'search' with type string (idl: USVString).

func (*URL) SetUsername Uses

func (_this *URL) SetUsername(value string)

SetUsername setting attribute 'username' with type string (idl: USVString).

func (*URL) ToJSON Uses

func (_this *URL) ToJSON() (_result string)

func (*URL) ToString Uses

func (_this *URL) ToString() string

ToString is an alias for Href.

func (*URL) Username Uses

func (_this *URL) Username() string

Username returning attribute 'username' with type string (idl: USVString).

type URLSearchParams Uses

type URLSearchParams struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: URLSearchParams

func URLSearchParamsFromJS Uses

func URLSearchParamsFromJS(value js.Wrapper) *URLSearchParams

URLSearchParamsFromJS is casting a js.Wrapper into URLSearchParams.

func (*URLSearchParams) Append Uses

func (_this *URLSearchParams) Append(name string, value string)

func (*URLSearchParams) Delete Uses

func (_this *URLSearchParams) Delete(name string)

func (*URLSearchParams) Entries Uses

func (_this *URLSearchParams) Entries() (_result *URLSearchParamsEntryIterator)

func (*URLSearchParams) ForEach Uses

func (_this *URLSearchParams) ForEach(callback *URLSearchParamsForEach, optionalThisForCallbackArgument interface{})

func (*URLSearchParams) Get Uses

func (_this *URLSearchParams) Get(name string) (_result *string)

func (*URLSearchParams) GetAll Uses

func (_this *URLSearchParams) GetAll(name string) (_result []string)

func (*URLSearchParams) Has Uses

func (_this *URLSearchParams) Has(name string) (_result bool)

func (*URLSearchParams) JSValue Uses

func (_this *URLSearchParams) JSValue() js.Value

func (*URLSearchParams) Keys Uses

func (_this *URLSearchParams) Keys() (_result *URLSearchParamsKeyIterator)

func (*URLSearchParams) Set Uses

func (_this *URLSearchParams) Set(name string, value string)

func (*URLSearchParams) Sort Uses

func (_this *URLSearchParams) Sort()

func (*URLSearchParams) ToString Uses

func (_this *URLSearchParams) ToString() (_result string)

func (*URLSearchParams) Values Uses

func (_this *URLSearchParams) Values() (_result *URLSearchParamsValueIterator)

type URLSearchParamsEntryIterator Uses

type URLSearchParamsEntryIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: URLSearchParamsEntryIterator

func URLSearchParamsEntryIteratorFromJS Uses

func URLSearchParamsEntryIteratorFromJS(value js.Wrapper) *URLSearchParamsEntryIterator

URLSearchParamsEntryIteratorFromJS is casting a js.Wrapper into URLSearchParamsEntryIterator.

func (*URLSearchParamsEntryIterator) JSValue Uses

func (_this *URLSearchParamsEntryIterator) JSValue() js.Value

func (*URLSearchParamsEntryIterator) Next Uses

func (_this *URLSearchParamsEntryIterator) Next() (_result *URLSearchParamsEntryIteratorValue)

type URLSearchParamsEntryIteratorValue Uses

type URLSearchParamsEntryIteratorValue struct {
    Value []js.Value
    Done  bool
}

dictionary: URLSearchParamsEntryIteratorValue

func URLSearchParamsEntryIteratorValueFromJS Uses

func URLSearchParamsEntryIteratorValueFromJS(value js.Wrapper) *URLSearchParamsEntryIteratorValue

URLSearchParamsEntryIteratorValueFromJS is allocating a new URLSearchParamsEntryIteratorValue object and copy all values from input javascript object

func (*URLSearchParamsEntryIteratorValue) JSValue Uses

func (_this *URLSearchParamsEntryIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type URLSearchParamsForEach Uses

type URLSearchParamsForEach js.Func

URLSearchParamsForEach is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func URLSearchParamsForEachToJS Uses

func URLSearchParamsForEachToJS(callback URLSearchParamsForEachFunc) *URLSearchParamsForEach

type URLSearchParamsForEachFunc Uses

type URLSearchParamsForEachFunc func(currentValue string, currentIndex int, listObj *URLSearchParams)

callback: URLSearchParamsForEach

func URLSearchParamsForEachFromJS Uses

func URLSearchParamsForEachFromJS(_value js.Value) URLSearchParamsForEachFunc

type URLSearchParamsKeyIterator Uses

type URLSearchParamsKeyIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: URLSearchParamsKeyIterator

func URLSearchParamsKeyIteratorFromJS Uses

func URLSearchParamsKeyIteratorFromJS(value js.Wrapper) *URLSearchParamsKeyIterator

URLSearchParamsKeyIteratorFromJS is casting a js.Wrapper into URLSearchParamsKeyIterator.

func (*URLSearchParamsKeyIterator) JSValue Uses

func (_this *URLSearchParamsKeyIterator) JSValue() js.Value

func (*URLSearchParamsKeyIterator) Next Uses

func (_this *URLSearchParamsKeyIterator) Next() (_result *URLSearchParamsKeyIteratorValue)

type URLSearchParamsKeyIteratorValue Uses

type URLSearchParamsKeyIteratorValue struct {
    Value string
    Done  bool
}

dictionary: URLSearchParamsKeyIteratorValue

func URLSearchParamsKeyIteratorValueFromJS Uses

func URLSearchParamsKeyIteratorValueFromJS(value js.Wrapper) *URLSearchParamsKeyIteratorValue

URLSearchParamsKeyIteratorValueFromJS is allocating a new URLSearchParamsKeyIteratorValue object and copy all values from input javascript object

func (*URLSearchParamsKeyIteratorValue) JSValue Uses

func (_this *URLSearchParamsKeyIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type URLSearchParamsValueIterator Uses

type URLSearchParamsValueIterator struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: URLSearchParamsValueIterator

func URLSearchParamsValueIteratorFromJS Uses

func URLSearchParamsValueIteratorFromJS(value js.Wrapper) *URLSearchParamsValueIterator

URLSearchParamsValueIteratorFromJS is casting a js.Wrapper into URLSearchParamsValueIterator.

func (*URLSearchParamsValueIterator) JSValue Uses

func (_this *URLSearchParamsValueIterator) JSValue() js.Value

func (*URLSearchParamsValueIterator) Next Uses

func (_this *URLSearchParamsValueIterator) Next() (_result *URLSearchParamsValueIteratorValue)

type URLSearchParamsValueIteratorValue Uses

type URLSearchParamsValueIteratorValue struct {
    Value string
    Done  bool
}

dictionary: URLSearchParamsValueIteratorValue

func URLSearchParamsValueIteratorValueFromJS Uses

func URLSearchParamsValueIteratorValueFromJS(value js.Wrapper) *URLSearchParamsValueIteratorValue

URLSearchParamsValueIteratorValueFromJS is allocating a new URLSearchParamsValueIteratorValue object and copy all values from input javascript object

func (*URLSearchParamsValueIteratorValue) JSValue Uses

func (_this *URLSearchParamsValueIteratorValue) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package url imports 3 packages (graph). Updated 2019-09-19. Refresh now. Tools for package owners.