Documentation ¶
Index ¶
- func AnyToMap(document interface{}) (map[string]interface{}, error)
- type ByteToMap
- type MapToByte
- type MapToRef
- type RefToMap
- func (coder *RefToMap) Create() (r map[string]interface{}, err error)
- func (coder *RefToMap) ExportByMapKey() *RefToMap
- func (coder *RefToMap) ReplaceMapTypeToSchemaEnum() *RefToMap
- func (coder *RefToMap) ReplaceStringToAlias(from, to string) *RefToMap
- func (coder *RefToMap) Reset()
- func (coder *RefToMap) SetSource(source reflectx.IRefObject) *RefToMap
- func (coder *RefToMap) Write(target map[string]interface{}) (err error)
- type TestClass1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByteToMap ¶
type ByteToMap struct {
// contains filtered or unexported fields
}
func NewByteToMap ¶
func NewByteToMap() (obj *ByteToMap)
func NewByteToMapWithSchema ¶
func NewByteToMapWithType ¶
type MapToByte ¶
type MapToByte struct {
// contains filtered or unexported fields
}
func NewMapToByte ¶
func NewMapToByte() (obj *MapToByte)
func NewMapToByteWithSchema ¶
func NewMapToByteWithType ¶
func (*MapToByte) SetByteOrder ¶
func (*MapToByte) WithChange ¶
func (*MapToByte) WithIgnoreAny ¶
WithIgnoreAny 设置 IgnoreAny 后, 遇到 Any 类型的字段将被忽略,否则会返回错误
type MapToRef ¶
type MapToRef struct {
// contains filtered or unexported fields
}
func NewMapToRef ¶
func NewMapToRef() (obj *MapToRef)
func (*MapToRef) Create ¶
func (coder *MapToRef) Create() (obj reflectx.IRefObject, err error)
Create 通过map创建一个对象 map必须设置 key=_type value=string, value指向schemax注册的声明
type RefToMap ¶
type RefToMap struct {
// contains filtered or unexported fields
}
func NewRefToMap ¶
func NewRefToMap() (obj *RefToMap)
func (*RefToMap) ExportByMapKey ¶
func (*RefToMap) ReplaceMapTypeToSchemaEnum ¶
func (*RefToMap) ReplaceStringToAlias ¶
type TestClass1 ¶
type TestClass1 struct { }
func (*TestClass1) RefType ¶
func (t *TestClass1) RefType() string
Click to show internal directories.
Click to hide internal directories.