Documentation ¶
Index ¶
Constants ¶
View Source
const ( TagName = "exhaustruct" OptionalTagValue = "optional" )
Variables ¶
View Source
var (
ErrEmptyPattern = errors.New("pattern can't be empty")
)
Functions ¶
Types ¶
type PatternsList ¶
func (PatternsList) MatchesAny ¶
func (l PatternsList) MatchesAny(str string) bool
MatchesAny matches provided string against all regexps in a slice.
type StructFields ¶ added in v2.2.0
type StructFields struct { All []string AllRequired []string Public []string PublicRequired []string }
func NewStructFields ¶ added in v2.2.0
func NewStructFields(strct *types.Struct) *StructFields
Click to show internal directories.
Click to hide internal directories.