Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidTag indicates an invalid tag or invalid use of an existing tag. ErrInvalidTag = errors.New("invalid tag") // ErrTag indicates an error while parsing flag tags. ErrTag = errors.New("tag error") )
Functions ¶
This section is empty.
Types ¶
type MultiTag ¶
type MultiTag struct {
// contains filtered or unexported fields
}
MultiTag is a structure to efficiently query a struct field' tags, regardless of their complexity.
func GetFieldTag ¶
func GetFieldTag(field reflect.StructField) (MultiTag, bool, error)
GetFieldTag directly reads, creates and parses a struct field and returns either a working multiTag, or an error if parsing failed.
func NewMultiTag ¶
NewMultiTag returns a new multi tag from a field tag string. The tags have not been parsed, you must call tag.Parse().
Click to show internal directories.
Click to hide internal directories.