Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoldName ¶
FoldName returns a folded string such that FoldName(x) == FoldName(y) is identical to bytes.EqualFold(x, y).
func IsEmptyValue ¶
Types ¶
type TagOptions ¶
type TagOptions string
TagOptions ...
func ParseTag ¶
func ParseTag(tag string) (string, TagOptions)
ParseTag splits a struct field's json tag into its name and comma-separated options.
func (TagOptions) Contains ¶
func (o TagOptions) Contains(optionName string) bool
Contains reports whether a comma-separated list of options contains a particular substr flag. substr must be surrounded by a string boundary or commas.
Click to show internal directories.
Click to hide internal directories.