Documentation
¶
Overview ¶
Package tags contains logic for parsing tags from a multiline string.
Index ¶
Constants ¶
View Source
const ( FormatUnspecified = "" FormatJSON = "json" FormatRaw = "raw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Format string
ArrayTags []string
StringTags []string
BoolTags []string
OutputAll bool
PrettyPrint bool
}
Config is the configuration needed to parse tags.
func (*Config) RegisterFlags ¶
type TagParser ¶
type TagParser struct {
// contains filtered or unexported fields
}
func NewTagParser ¶
NewTagParser creates a new tag parser.
Click to show internal directories.
Click to hide internal directories.