Documentation
¶
Overview ¶
Package flat provides a flat view of an arbitrary nested structs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedType = errors.New("unexpected type, expecting a pointer to struct")
ErrUnexpectedType is returned when flatten sees an unsupported type.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field interface {
Name() string
EnvName() string
Tag(key string) (string, bool)
ParentTag() reflect.StructTag
Meta() map[string]string
String() string
Set(value string) error
IsZero() bool
FieldValue() reflect.Value
FieldType() reflect.StructField
}
Field describe an interface to our flat structs fields.
Click to show internal directories.
Click to hide internal directories.