a

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A

type A struct {
	*tinydom.Element
}

A is an a element See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a for reference

func New

func New(href, description string) *A

New creates a new instance of A

func (*A) Rel

func (a *A) Rel() (bool, string)

func (*A) SetRel

func (a *A) SetRel(values ...Rel) *A

func (*A) SetTarget

func (a *A) SetTarget(value string) *A

func (*A) Target

func (a *A) Target() (bool, string)

type Rel

type Rel string
const (
	Alternate  Rel = "alternate"
	Author     Rel = "author"
	Bookmark   Rel = "bookmark"
	External   Rel = "external"
	Help       Rel = "help"
	License    Rel = "license"
	Next       Rel = "next"
	Nofollow   Rel = "nofollow"
	Noreferrer Rel = "noreferrer"
	Noopener   Rel = "noopener"
	Prev       Rel = "prev"
	Search     Rel = "search"
	Tag        Rel = "tag"
)

See https://www.w3schools.com/tags/att_a_rel.asp for reference

Jump to

Keyboard shortcuts

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