Documentation
¶
Index ¶
- type HTMLAttr
- func A(name, href string, properties ...HTMLProperty) HTMLAttr
- func Any(tag, content string, properties ...HTMLProperty) HTMLAttr
- func Br() HTMLAttr
- func H(level int, options []HTMLAttr, properties ...HTMLProperty) HTMLAttr
- func Normal(content string) HTMLAttr
- func P(content string) HTMLAttr
- func TBody(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr
- func THead(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr
- func Table(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr
- func Td(content string, properties ...HTMLProperty) HTMLAttr
- func Th(content string, properties ...HTMLProperty) HTMLAttr
- func Tr(options []HTMLAttr, properties ...HTMLProperty) HTMLAttr
- func Ul(contents ...string) HTMLAttr
- type HTMLProperty
- type HTMLWriter
- type HTMLWriterImpl
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 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
type HTMLProperty ¶
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
Click to show internal directories.
Click to hide internal directories.