Documentation ¶
Index ¶
- Variables
- func If[T ~string | Result](cond bool, result T) T
- func IfCall[T ~string | Result](cond bool, call func() T) T
- func IfElse[T ~string | Result](cond bool, ifR T, elseR T) T
- func IfElseCall[T ~string | Result](cond bool, ifCall func() T, elseCall func() T) T
- func See(what ...any) string
- type Attr
- type Result
- func Append(collect Result, frags ...Result) Result
- func AsIs(a ...string) Result
- func HTMLEncode(a string) Result
- func JSStringEscape(a string) Result
- func Map[T any](a []T, f func(int) Result) Result
- func NewElem(tag string, attr Attr, bodyEls ...Result) Result
- func NewHTML(cap int) Result
- func Prepend(doctype string, html Result) Result
Constants ¶
This section is empty.
Variables ¶
View Source
var URIComponentEncode = url.QueryEscape
Functions ¶
func IfElseCall ¶
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
contains well-formed HTML fragment
func HTMLEncode ¶
Used to output HTML text, escaping HTML reserved characters <>&"
func JSStringEscape ¶
Click to show internal directories.
Click to hide internal directories.