elements

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URLs added in v1.1.4

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

A url map element

func NewURLs added in v1.1.4

func NewURLs() *URLs

Create a new url map

func (*URLs) Delete added in v1.1.4

func (u *URLs) Delete(key string)

Delete a url element from the map, and remove it from the DOM

func (*URLs) ForEach added in v1.1.4

func (u *URLs) ForEach(f func(k string, elem *Element), reverse ...bool)

Loop through all key, value urls in order

func (*URLs) FromElements added in v1.1.4

func (u *URLs) FromElements(elems ...*Element)

Fill up the URLs map from a slice of Elements

func (*URLs) Get added in v1.1.4

func (u *URLs) Get(key string) *Element

Get a url element from the map

func (*URLs) Hide added in v1.1.4

func (u *URLs) Hide(urlname ...string)

Set display to none for all urls, or for a list of urls

func (*URLs) InOrder added in v1.1.4

func (u *URLs) InOrder(reverse ...bool) []*Element

Loop through all urls in order

func (*URLs) Keys added in v1.1.4

func (u *URLs) Keys() []string

Get the underlying slice of ordered keys

func (*URLs) Len added in v1.1.4

func (u *URLs) Len() int

Length of the underlying map of URLs

func (*URLs) Map added in v1.1.4

func (u *URLs) Map() map[string]*Element

Get the underlying map of URLs

func (*URLs) Set added in v1.1.4

func (u *URLs) Set(key string, value *Element, external ...bool)

Set a url element in the map

func (*URLs) Show added in v1.1.4

func (u *URLs) Show(display string, urlname ...string)

Set display to param_display for all urls, or for a list of urls

Jump to

Keyboard shortcuts

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