package
1.0.3
Repository: https://github.com/bennovw/firestruct.git
Documentation: pkg.go.dev

# Functions

NewCache constructs a Cache.
ParseStandardTag extracts the sub-tag named by key, then parses it using the de facto standard format introduced in encoding/json: "-" means "ignore this tag".

# Structs

A Cache records information about the fields of struct types.
A Field records information about a struct field.

# Type aliases

LeafTypesFunc is a function that accepts a reflect.Type and returns true if the struct type a leaf, or false if not.
A List is a list of Fields.
ParseTagFunc is a function that accepts a struct tag and returns four values: an alternative name for the field extracted from the tag, a boolean saying whether to keep the field or ignore it, additional data that is stored with the field information to avoid having to parse the tag again, and an error.
ValidateFunc is a function that accepts a reflect.Type and returns an error if the struct type is invalid in any way.