htm

package
v0.0.0-...-52b1b20 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ArticleAttrs   = &Attrs{Class: class{"article"}}
	HeadingAttrs   = &Attrs{Class: class{"heading"}}
	HighlightAttrs = &Attrs{Class: class{"highlight"}}
)

Functions

This section is empty.

Types

type AAttrs

type AAttrs struct {
	Action actions.ClientAction
	Class  string
}

type Attrs

type Attrs struct {
	Class class
}

type BElement

type BElement interface {
	Element
	// contains filtered or unexported methods
}

func Div

func Div(a *Attrs, l ...Element) BElement

func H1

func H1(a *Attrs, l ...Element) BElement

func H2

func H2(a *Attrs, l ...Element) BElement

func H3

func H3(a *Attrs, l ...Element) BElement

func H4

func H4(a *Attrs, l ...Element) BElement

func H5

func H5(a *Attrs, l ...Element) BElement

func H6

func H6(a *Attrs, l ...Element) BElement

func Li

func Li(a *Attrs, l ...Element) BElement

func Ol

func Ol(a *Attrs, l ...Element) BElement

func P

func P(a *Attrs, l ...IElement) BElement

func Ul

func Ul(a *Attrs, l ...Element) BElement

type Element

type Element interface {
	FPrintHTML(w io.Writer) error
	FPrintText(w io.Writer) error
	// contains filtered or unexported methods
}

func Article

func Article(heading IElement, content ...Element) Element

type IElement

type IElement interface {
	Element
	// contains filtered or unexported methods
}

func A

func A(a *AAttrs, l ...IElement) IElement

func Em

func Em(a *Attrs, l ...IElement) IElement

func EmText

func EmText(s string) IElement

func HighlightText

func HighlightText(s string) IElement

func Span

func Span(a *Attrs, l ...IElement) IElement

func Strong

func Strong(a *Attrs, l ...IElement) IElement

func StrongText

func StrongText(s string) IElement

func Text

func Text(s string) IElement

func Textf

func Textf(format string, a ...interface{}) IElement

Jump to

Keyboard shortcuts

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