Documentation ¶
Index ¶
- func GetSlice(data map[string]interface{}, keys ...string) ([]map[string]interface{}, bool)
- func GetValue(data map[string]interface{}, keys ...string) (interface{}, bool)
- func GetValueN(data map[string]interface{}, keys ...string) interface{}
- func PutValue(data map[string]interface{}, val interface{}, keys ...string)
- func RemoveValue(data map[string]interface{}, keys ...string) (interface{}, bool)
- type Copy
- type Drop
- type Embed
- type Enum
- type Move
- type Object
- type SliceToMap
- type Swap
- type UnionEmbed
- type UnionMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveValue ¶
Types ¶
type Drop ¶
type Drop struct {
Field string
}
func (Drop) FromInternal ¶
func (Drop) ModifySchema ¶
func (Drop) ToInternal ¶
type Embed ¶
type Embed struct { Field string // contains filtered or unexported fields }
func (*Embed) FromInternal ¶
func (*Embed) ModifySchema ¶
func (*Embed) ToInternal ¶
type Move ¶
type Move struct {
From, To string
}
func (Move) FromInternal ¶
func (Move) ModifySchema ¶
func (Move) ToInternal ¶
type Object ¶
type Object struct {
types.TypeMapper
}
type SliceToMap ¶
func (SliceToMap) FromInternal ¶
func (s SliceToMap) FromInternal(data map[string]interface{})
func (SliceToMap) ModifySchema ¶
func (SliceToMap) ToInternal ¶
func (s SliceToMap) ToInternal(data map[string]interface{})
type UnionEmbed ¶
type UnionEmbed struct { Fields []UnionMapping // contains filtered or unexported fields }
func (*UnionEmbed) FromInternal ¶
func (u *UnionEmbed) FromInternal(data map[string]interface{})
func (*UnionEmbed) ModifySchema ¶
func (*UnionEmbed) ToInternal ¶
func (u *UnionEmbed) ToInternal(data map[string]interface{})
type UnionMapping ¶
Click to show internal directories.
Click to hide internal directories.