Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Extension ¶
Extension is a FileAnalyzer that uses regular expressions to find snippets. It can be configured to only match certain files using a glob. For a snippet to be recorded, it must be in a group with a name. For example, the following regex will match a function named "foo" and a function named "bar": (?P<function>func foo\(\) {.*?})|(?P<function>func bar\(\) {.*?})
See https://www.regular-expressions.info/named.html for more information on named groups.
type ExtensionYamlFile ¶
type ExtensionYamlFile struct {
Extensions map[string]*embeddedExtensionDefinition `yaml:"extensions"`
}
Click to show internal directories.
Click to hide internal directories.