Documentation ¶
Index ¶
- Constants
- func MapStructBoolSliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructDurationCaster(targetType reflect.Type, value interface{}) (interface{}, error)
- func MapStructFloat32SliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructFloat64SliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructInt64SliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructIntSliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructSliceCaster(targetType reflect.Type, value interface{}) (interface{}, error)
- func MapStructStringSliceCaster(_ reflect.Type, value interface{}) (interface{}, error)
- func MapStructTimeCaster(targetType reflect.Type, value interface{}) (interface{}, error)
- func SkipExisting(mode *OpMode)
- type MapOption
- type MapStructCaster
- type MapStructDecoder
- type MapX
- func (m *MapX) Append(key string, values ...interface{}) error
- func (m *MapX) Get(key string) *MapXNode
- func (m *MapX) Has(key string) bool
- func (m *MapX) Keys() []string
- func (m *MapX) Merge(key string, source interface{}, options ...MapOption)
- func (m *MapX) Msi() map[string]interface{}
- func (m *MapX) Set(key string, value interface{}, options ...MapOption)
- func (m *MapX) String() string
- type MapXNode
- type Msier
- type OpMode
- type Struct
- type StructKey
- type StructSettings
- type StructTag
Constants ¶
View Source
const (
PathSeparator = "."
)
Variables ¶
This section is empty.
Functions ¶
func MapStructBoolSliceCaster ¶ added in v0.21.3
func MapStructDurationCaster ¶
func MapStructFloat32SliceCaster ¶ added in v0.21.3
func MapStructFloat64SliceCaster ¶ added in v0.21.3
func MapStructInt64SliceCaster ¶ added in v0.21.3
func MapStructIntSliceCaster ¶ added in v0.21.3
func MapStructSliceCaster ¶ added in v0.21.3
MapStructSliceCaster casts values to []T, based on casters in mapStructSliceCasters
func MapStructStringSliceCaster ¶ added in v0.21.3
func MapStructTimeCaster ¶
func SkipExisting ¶
func SkipExisting(mode *OpMode)
Types ¶
type MapStructCaster ¶
type MapStructDecoder ¶
type MapXNode ¶
type MapXNode struct {
// contains filtered or unexported fields
}
func (*MapXNode) StringSlice ¶
type Struct ¶
type Struct struct {
// contains filtered or unexported fields
}
func NewStruct ¶
func NewStruct(source interface{}, settings *StructSettings) (*Struct, error)
func (*Struct) ReadZeroAndDefaultValues ¶
type StructSettings ¶
type StructSettings struct { FieldTag string DefaultTag string Casters []MapStructCaster Decoders []MapStructDecoder }
Click to show internal directories.
Click to hide internal directories.