Documentation ¶
Index ¶
- func GetWikiStringValue(v []interface{}, opts *WikiStringValueOptions) (r []string)
- func NormalizeWikiTitle(title string) string
- func ParseWikiText(text string) (result []interface{})
- type DescriptionList
- type HTML
- type HTMLTag
- type Link
- type NewLineToken
- type Template
- type UnorderedList
- type WikiStringValueOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetWikiStringValue ¶
func GetWikiStringValue(v []interface{}, opts *WikiStringValueOptions) (r []string)
func NormalizeWikiTitle ¶
func ParseWikiText ¶
func ParseWikiText(text string) (result []interface{})
ParseWikiText small WikiText parser that extracts text, Templates, and its arguments/parameters
Types ¶
type DescriptionList ¶
type DescriptionList struct { Name []interface{} Entries []interface{} }
func ParseDescriptionList ¶
func ParseDescriptionList(text string, index int, depth int) (i int, list *DescriptionList)
type NewLineToken ¶
type NewLineToken struct { }
type Template ¶
type Template struct { Name string IsLink bool Parameters map[string][]interface{} UnkeyedIndex int }
func NewTemplate ¶
func ParseTemplate ¶
func (*Template) AddParameter ¶
func (*Template) AddParameterUnkeyed ¶
func (t *Template) AddParameterUnkeyed(value interface{})
type WikiStringValueOptions ¶
type WikiStringValueOptions struct { PageName string Trim bool StringHandler func(value string, opt *WikiStringValueOptions) []string HTMLHandler func(value *HTML, opt *WikiStringValueOptions) []string LinkHandler func(value *Link, opt *WikiStringValueOptions) []string TemplateLinkHandler func(value *Template, opt *WikiStringValueOptions) []string TemplateHandler func(value *Template, opt *WikiStringValueOptions) []string UnorderedListHandler func(value *UnorderedList, opt *WikiStringValueOptions) []string DescriptionListHandler func(value *DescriptionList, opt *WikiStringValueOptions) []string NewLineHandler func(opt *WikiStringValueOptions) []string }
func (*WikiStringValueOptions) Default ¶
func (o *WikiStringValueOptions) Default()
Click to show internal directories.
Click to hide internal directories.