html

package
v0.1.73 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EscapeString   = html.EscapeString
	UnescapeString = html.UnescapeString
)

Functions

This section is empty.

Types

type Element

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

func A

func A() *Element

func B

func B() *Element

func Background

func Background() *Element

func Body

func Body() *Element

func Br

func Br() *Element

func Div

func Div() *Element

func Em

func Em() *Element

func Form

func Form() *Element

func H1

func H1() *Element

func H2

func H2() *Element
func Head() *Element

func I

func I() *Element

func Img

func Img() *Element

func Input

func Input() *Element

func Label

func Label() *Element

func Li

func Li() *Element

func Meta

func Meta() *Element

func NewElement

func NewElement(tag string) *Element

func NewHTML

func NewHTML() *Element

func P

func P() *Element

func Span

func Span() *Element

func Style

func Style() *Element

func Svg

func Svg() *Element

func Table

func Table() *Element

func Tbody

func Tbody() *Element

func Thead

func Thead() *Element

func Title

func Title() *Element

func Tr

func Tr(element ...*TableCell) *Element

func Ul

func Ul() *Element

func (*Element) AppendChild

func (e *Element) AppendChild(child ...*Element) *Element

func (*Element) AppendContent

func (e *Element) AppendContent(v ...any) *Element

func (*Element) AppendHTML

func (e *Element) AppendHTML(html ...string) *Element

func (*Element) Attribute

func (e *Element) Attribute(name, value string) *Element

func (*Element) Class

func (e *Element) Class(class ...string) *Element

func (*Element) Content

func (e *Element) Content(v ...any) *Element

func (*Element) Contentf

func (e *Element) Contentf(format string, a ...any) *Element

func (*Element) HTML

func (e *Element) HTML() HTML

func (*Element) HTMLContent

func (e *Element) HTMLContent(html string) *Element

func (*Element) Href

func (e *Element) Href(href string) *Element

func (*Element) Name

func (e *Element) Name(name string) *Element

func (*Element) Src

func (e *Element) Src(src string) *Element

func (*Element) String

func (e *Element) String() string

func (*Element) Style

func (e *Element) Style(style string) *Element

func (*Element) Title

func (e *Element) Title(title string) *Element

type HTML

type HTML string

type HTMLer

type HTMLer interface {
	HTML() HTML
}

type TableCell

type TableCell struct{ *Element }

func Td

func Td(content any) *TableCell

func Th

func Th(content any) *TableCell

func (*TableCell) Abbr

func (cell *TableCell) Abbr(abbr string) *TableCell

func (*TableCell) Class

func (cell *TableCell) Class(class ...string) *TableCell

func (*TableCell) Colspan

func (cell *TableCell) Colspan(n uint) *TableCell

func (*TableCell) Headers

func (cell *TableCell) Headers(headers string) *TableCell

func (*TableCell) Rowspan

func (cell *TableCell) Rowspan(n uint) *TableCell

func (*TableCell) Scope

func (cell *TableCell) Scope(scope string) *TableCell

func (*TableCell) Style

func (cell *TableCell) Style(style string) *TableCell

Jump to

Keyboard shortcuts

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