Documentation ¶
Index ¶
- Constants
- func MapStructDurationCaster(targetType 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 MapStructDurationCaster ¶
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.