Documentation
¶
Index ¶
Constants ¶
View Source
const DocTagName = "annotator"
DocTagName is the struct tag used to document annotator configuration fields.
Variables ¶
This section is empty.
Functions ¶
func DelegatedYAML ¶
DelegatedYAML will unmarshal the yaml configuration into a yaml.MapSlice and named fields. Given:
struct { YAML.MapSlice Type string `yaml:"type"` }
it will unmarshal the entire config into the MapSlice and if any of the fields in MapSlice have a key 'type', the value for that key will assigned to the Type field.
func MustDescribe ¶
func RemarshalYAML ¶
RemarshalYAML will marshal the supplied yaml.MapSlice to a buf and then invoke the supplied unmarshal function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.