Documentation
¶
Index ¶
- func EscapeString(s string) template.HTML
- func HTMLFormat(s template.HTML, rawArgs ...any) template.HTML
- func HTMLPrint(w io.Writer, s template.HTML) (int, error)
- func HTMLPrintTag(w io.Writer, tag template.HTML, attrs map[string]string) (written int, err error)
- func HTMLPrintf(w io.Writer, s template.HTML, rawArgs ...any) (int, error)
- func ParseSizeAndClass(defaultSize int, defaultClass string, others ...any) (int, string)
- type HTMLBuilder
- type HTMLWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeString ¶
func HTMLPrintTag ¶
Types ¶
type HTMLBuilder ¶
type HTMLBuilder struct {
// contains filtered or unexported fields
}
func (*HTMLBuilder) HTMLString ¶
func (b *HTMLBuilder) HTMLString() template.HTML
func (*HTMLBuilder) String ¶
func (b *HTMLBuilder) String() string
func (*HTMLBuilder) WriteFormat ¶
func (b *HTMLBuilder) WriteFormat(fmt template.HTML, args ...any) *HTMLBuilder
func (*HTMLBuilder) WriteHTML ¶
func (b *HTMLBuilder) WriteHTML(s template.HTML) *HTMLBuilder
func (*HTMLBuilder) WriteString ¶
func (b *HTMLBuilder) WriteString(s string) *HTMLBuilder
type HTMLWriter ¶
type HTMLWriter interface {
OriginWriter() io.Writer
WriteString(s string) HTMLWriter
WriteHTML(s template.HTML) HTMLWriter
WriteFormat(fmt template.HTML, args ...any) HTMLWriter
Err() error
}
func NewHTMLWriter ¶
func NewHTMLWriter(w io.Writer) HTMLWriter
Click to show internal directories.
Click to hide internal directories.