Documentation
¶
Index ¶
Constants ¶
View Source
const ( None = Options(0x0000) IgnoreCase = Options(0x0001) // "i" Multiline = Options(0x0002) // "m" ExplicitCapture = Options(0x0004) // "n" Compiled = Options(0x0008) // "c" Singleline = Options(0x0010) // "s" IgnorePatternWhitespace = Options(0x0020) // "x" RightToLeft = Options(0x0040) // "r" Debug = Options(0x0080) // "d" ECMAScript = Options(0x0100) // "e" RE2 = Options(0x0200) // RE2 (regexp package) compatibility mode Global = Options(0x0400) // "g" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Regex ¶
type Regex struct {
*regexp2.Regexp
LastIndex int
Global bool
Multiline bool
IgnoreCase bool
Source string
// contains filtered or unexported fields
}
func MustCompile ¶
func (*Regex) ReplaceRune ¶
func (*Regex) ReplaceStr ¶
type Token ¶
type Token struct {
Type string `json:"type"`
Raw string `json:"raw"`
Text string `json:"text"`
// list
Ordered bool `json:"ordered,omitempty"`
Start string `json:"start,omitempty"`
Loose bool `json:"loose,omitempty"`
Task bool `json:"task,omitempty"`
Items []Token `json:"items,omitempty"`
Checked string `json:"checked,omitempty"`
// heading
Depth int `json:"depth,omitempty"`
// link
Href string `json:"href,omitempty"`
Title string `json:"title,omitempty"`
// def
Tag string `json:"tag,omitempty"`
Tokens []Token `json:"tokens,omitempty"`
// table
Header []string `json:"header,omitempty"`
Align []string `json:"align,omitempty"`
Cells [][]string `json:"cells,omitempty"`
Elements struct {
Header [][]Token `json:"header,omitempty"`
Cells [][][]Token `json:"cells,omitempty"`
} `json:"elements,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.