html

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLAttr

type HTMLAttr func(h HTMLWriter)

func A

func A(name, href string, properties ...HTMLProperty) HTMLAttr

func Any

func Any(tag, content string, properties ...HTMLProperty) HTMLAttr

func Br

func Br() HTMLAttr

func H

func H(level int, options []HTMLAttr, properties ...HTMLProperty) HTMLAttr

func Normal

func Normal(content string) HTMLAttr

func P

func P(content string) HTMLAttr

func TBody

func TBody(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr

func THead

func THead(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr

func Table

func Table(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr

func Td

func Td(content string, properties ...HTMLProperty) HTMLAttr

func Th

func Th(content string, properties ...HTMLProperty) HTMLAttr

func Tr

func Tr(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr

func Ul

func Ul(contents ...string) HTMLAttr

type HTMLProperty

type HTMLProperty struct {
	Key   string
	Value string
}

type HTMLWriter

type HTMLWriter interface {
	New(options ...HTMLAttr) HTMLWriter
	NewString(options ...HTMLAttr) string
	GetBuffer() buffer.Buffer
	Set(options ...HTMLAttr) HTMLWriter
	End() string
}

type HTMLWriterImpl added in v2.9.1

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

func (HTMLWriterImpl) End added in v2.9.1

func (my HTMLWriterImpl) End() string

func (HTMLWriterImpl) GetBuffer added in v2.9.1

func (my HTMLWriterImpl) GetBuffer() buffer.Buffer

func (HTMLWriterImpl) New added in v2.9.1

func (HTMLWriterImpl) New(options ...HTMLAttr) HTMLWriter

func (HTMLWriterImpl) NewString added in v2.9.1

func (HTMLWriterImpl) NewString(options ...HTMLAttr) string

func (HTMLWriterImpl) Set added in v2.9.1

func (my HTMLWriterImpl) Set(options ...HTMLAttr) HTMLWriter

Jump to

Keyboard shortcuts

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