Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
Option represents a single option from a struct field tag.
type Options ¶
type Options []Option
Options represents a set of parsed options of a struct field tag.
func ParseOptions ¶
ParseOptions parses tag into Options using optionSep and kvSep.
If optionSep is not empty, it splits tag into options using optionSep as separator, else the whole tag is considered as a single option. If kvSep is not empty, it splits each option into key value pair using kvSep as separator, else the option's key, value will be empty.
Click to show internal directories.
Click to hide internal directories.