Documentation ¶
Index ¶
- func Escape(a any) string
- func If[T any](cond bool, x, y T) T
- func Render(c Component, w io.Writer) error
- func RenderBytes(c Component) ([]byte, error)
- func RenderString(c Component) (string, error)
- func When[T any](cond bool, x T) *T
- type Component
- func A(args ...Component) Component
- func Abbr(args ...Component) Component
- func Acronym(args ...Component) Component
- func Address(args ...Component) Component
- func Area(args ...Component) Component
- func Article(args ...Component) Component
- func Aside(args ...Component) Component
- func Attr(name string, values ...any) Component
- func AttrNS(namespace string, name string, values ...any) Component
- func Attrs(values ...any) Component
- func Audio(args ...Component) Component
- func B(args ...Component) Component
- func Base(args ...Component) Component
- func Bdi(args ...Component) Component
- func Bdo(args ...Component) Component
- func Big(args ...Component) Component
- func Blockquote(args ...Component) Component
- func Body(args ...Component) Component
- func Br(args ...Component) Component
- func Button(args ...Component) Component
- func Canvas(args ...Component) Component
- func Caption(args ...Component) Component
- func Center(args ...Component) Component
- func Cite(args ...Component) Component
- func Class(values ...any) Component
- func Code(args ...Component) Component
- func Col(args ...Component) Component
- func Colgroup(args ...Component) Component
- func Data(args ...Component) Component
- func Datalist(args ...Component) Component
- func Dd(args ...Component) Component
- func Del(args ...Component) Component
- func Details(args ...Component) Component
- func Dfn(args ...Component) Component
- func Dialog(args ...Component) Component
- func Dir(args ...Component) Component
- func Div(args ...Component) Component
- func Dl(args ...Component) Component
- func Dt(args ...Component) Component
- func Em(args ...Component) Component
- func Embed(args ...Component) Component
- func Fieldset(args ...Component) Component
- func Figcaption(args ...Component) Component
- func Figure(args ...Component) Component
- func Font(args ...Component) Component
- func Footer(args ...Component) Component
- func For[T any](items []T, fn func(item T) Component) Component
- func ForIndex[T any](items []T, fn func(i int) Component) Component
- func Form(args ...Component) Component
- func Fragment(args ...Component) Component
- func Frame(args ...Component) Component
- func Frameset(args ...Component) Component
- func H1(args ...Component) Component
- func H2(args ...Component) Component
- func H3(args ...Component) Component
- func H4(args ...Component) Component
- func H5(args ...Component) Component
- func H6(args ...Component) Component
- func Head(args ...Component) Component
- func Header(args ...Component) Component
- func Hgroup(args ...Component) Component
- func Hr(args ...Component) Component
- func Html(args ...Component) Component
- func I(args ...Component) Component
- func Id(values ...any) Component
- func Iframe(args ...Component) Component
- func Image(args ...Component) Component
- func Img(args ...Component) Component
- func Input(args ...Component) Component
- func Ins(args ...Component) Component
- func Kbd(args ...Component) Component
- func Label(args ...Component) Component
- func Legend(args ...Component) Component
- func Li(args ...Component) Component
- func Link(args ...Component) Component
- func Main(args ...Component) Component
- func Map(args ...Component) Component
- func Mark(args ...Component) Component
- func Marquee(args ...Component) Component
- func Menu(args ...Component) Component
- func Menuitem(args ...Component) Component
- func Meta(args ...Component) Component
- func Meter(args ...Component) Component
- func Nav(args ...Component) Component
- func Nobr(args ...Component) Component
- func Node(tag string, args []Component) Component
- func Noembed(args ...Component) Component
- func Noframes(args ...Component) Component
- func Noscript(args ...Component) Component
- func Object(args ...Component) Component
- func Ol(args ...Component) Component
- func Optgroup(args ...Component) Component
- func Option(args ...Component) Component
- func Output(args ...Component) Component
- func P(args ...Component) Component
- func Param(args ...Component) Component
- func Picture(args ...Component) Component
- func Plaintext(args ...Component) Component
- func Portal(args ...Component) Component
- func Pre(args ...Component) Component
- func Progress(args ...Component) Component
- func Q(args ...Component) Component
- func Raw(args ...any) Component
- func Rb(args ...Component) Component
- func Rp(args ...Component) Component
- func Rt(args ...Component) Component
- func Rtc(args ...Component) Component
- func Ruby(args ...Component) Component
- func S(args ...Component) Component
- func Samp(args ...Component) Component
- func Script(args ...Component) Component
- func Search(args ...Component) Component
- func Section(args ...Component) Component
- func Select(args ...Component) Component
- func Slot(args ...Component) Component
- func Small(args ...Component) Component
- func Source(args ...Component) Component
- func Span(args ...Component) Component
- func Strike(args ...Component) Component
- func Strong(args ...Component) Component
- func Style(args ...Component) Component
- func Sub(args ...Component) Component
- func Summary(args ...Component) Component
- func Sup(args ...Component) Component
- func Table(args ...Component) Component
- func Tbody(args ...Component) Component
- func Td(args ...Component) Component
- func Template(args ...Component) Component
- func Text(args ...any) Component
- func Textarea(args ...Component) Component
- func Tfoot(args ...Component) Component
- func Th(args ...Component) Component
- func Thead(args ...Component) Component
- func Time(args ...Component) Component
- func Times(count int, fn func(i int) Component) Component
- func Title(args ...Component) Component
- func Tr(args ...Component) Component
- func Track(args ...Component) Component
- func Tt(args ...Component) Component
- func U(args ...Component) Component
- func Ul(args ...Component) Component
- func Var(args ...Component) Component
- func Video(args ...Component) Component
- func Wbr(args ...Component) Component
- func Xmp(args ...Component) Component
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderBytes ¶
func RenderString ¶
Types ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRenderer() *Renderer
Click to show internal directories.
Click to hide internal directories.