Versions in this module Expand all Collapse all v1 v1.0.0 Apr 1, 2018 Changes in this version + const CLOSING_TAG + const OPENING_TAG + const TEXT + var DefaultTagCompilers map[string]TagCompilerFunc + func CompileText(in *BBCodeNode) string + func InsertNewlines(out *HTMLTag) + func Lex(str string) chan Token + func ValidURL(raw string) string + type BBClosingTag struct + Name string + Raw string + type BBCodeNode struct + Children []*BBCodeNode + ClosingTag *BBClosingTag + Compiler *Compiler + Info interface{} + Parent *BBCodeNode + func Parse(tokens chan Token) *BBCodeNode + func (n *BBCodeNode) GetOpeningTag() *BBOpeningTag + type BBOpeningTag struct + Args map[string]string + Name string + Raw string + Value string + func (t *BBOpeningTag) String() string + type Compiler struct + AutoCloseTags bool + IgnoreUnmatchedClosingTags bool + func NewCompiler(autoCloseTags, ignoreUnmatchedClosingTags bool) Compiler + func (c Compiler) Compile(str string) string + func (c Compiler) CompileTree(node *BBCodeNode) *HTMLTag + func (c Compiler) SetDefault(compiler TagCompilerFunc) + func (c Compiler) SetTag(tag string, compiler TagCompilerFunc) + type HTMLTag struct + Attrs map[string]string + Children []*HTMLTag + Name string + Value string + func CompileRaw(in *BBCodeNode) *HTMLTag + func NewHTMLTag(value string) *HTMLTag + func NewlineTag() *HTMLTag + func (t *HTMLTag) AppendChild(child *HTMLTag) *HTMLTag + func (t *HTMLTag) String() string + type TagCompilerFunc func(*BBCodeNode) (*HTMLTag, bool) + var DefaultTagCompiler TagCompilerFunc + type Token struct + ID string + Value interface{}