Documentation ¶
Index ¶
Constants ¶
View Source
const ( ANNOTATION_OPT = "@knit" ANNOTATION_BEG = "@+knit" ANNOTATION_END = "@!knit" BEG_PATTERN = `(.*)@\+knit(.*)` END_PATTERN = `(.*)@!knit(.*)` OPTION_PATTERN = "@knit.(\\w*).([^`\\n]*)(?:`((.|\\n)*?(?<!\\\\))`)?" GROUP_OPTION_TYPE = 1 GROUP_OPTION_VALUE = 2 GROUP_OPTION_LITERAL = 3 )
Variables ¶
This section is empty.
Functions ¶
func BeginAnnotation ¶
BeginAnnotation uses regexp to match parser.BEG_PATTERN in the given input text. Returns an error if no match was found
func EndAnnotation ¶
EndAnnotation uses regexp to match parser.END_PATTERN in the given input text. Returns an error if no match was found
Types ¶
type Option ¶
Option represents options read through the regex parser.
Click to show internal directories.
Click to hide internal directories.