Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + const KeySortMode_Default + const KeySortMode_RFC7049 + const KeySortMode_Strings + type Atlas struct + func Build(entries ...*AtlasEntry) (Atlas, error) + func MustBuild(entries ...*AtlasEntry) Atlas + func (atl Atlas) Get(rtid uintptr) (*AtlasEntry, bool) + func (atl Atlas) GetDefaultMapMorphism() *MapMorphism + func (atl Atlas) GetEntryByTag(tag int) (*AtlasEntry, bool) + func (atl Atlas) WithMapMorphism(m MapMorphism) Atlas + type AtlasEntry struct + MapMorphism *MapMorphism + MarshalTransformFunc MarshalTransformFunc + MarshalTransformTargetType reflect.Type + StructMap *StructMap + Tag int + Tagged bool + Type reflect.Type + UnionKeyedMorphism *UnionKeyedMorphism + UnmarshalTransformFunc UnmarshalTransformFunc + UnmarshalTransformTargetType reflect.Type + ValidateFn func(v interface{}) error + func AutogenerateStructMapEntry(rt reflect.Type) *AtlasEntry + func AutogenerateStructMapEntryUsingTags(rt reflect.Type, tagName string, sorter KeySortMode) *AtlasEntry + type BuilderCore struct + func BuildEntry(typeHintObj interface{}) *BuilderCore + func (x *BuilderCore) KeyedUnion() *BuilderUnionKeyedMorphism + func (x *BuilderCore) MapMorphism() *BuilderMapMorphism + func (x *BuilderCore) StructMap() *BuilderStructMap + func (x *BuilderCore) Transform() *BuilderTransform + func (x *BuilderCore) UseTag(tag int) *BuilderCore + type BuilderMapMorphism struct + func (x *BuilderMapMorphism) Complete() *AtlasEntry + func (x *BuilderMapMorphism) SetKeySortMode(km KeySortMode) *BuilderMapMorphism + type BuilderStructMap struct + func (x *BuilderStructMap) AddField(fieldName string, mapping StructMapEntry) *BuilderStructMap + func (x *BuilderStructMap) Autogenerate() *BuilderStructMap + func (x *BuilderStructMap) AutogenerateWithSortingScheme(sorting KeySortMode) *BuilderStructMap + func (x *BuilderStructMap) Complete() *AtlasEntry + func (x *BuilderStructMap) IgnoreKey(serialKeyName string) *BuilderStructMap + type BuilderTransform struct + func (x *BuilderTransform) Complete() *AtlasEntry + func (x *BuilderTransform) TransformMarshal(trFunc MarshalTransformFunc, toType reflect.Type) *BuilderTransform + func (x *BuilderTransform) TransformUnmarshal(trFunc UnmarshalTransformFunc, toType reflect.Type) *BuilderTransform + type BuilderUnionKeyedMorphism struct + func (x *BuilderUnionKeyedMorphism) Of(elements map[string]*AtlasEntry) *AtlasEntry + type ErrStructureMismatch struct + Reason string + TypeName string + func (e ErrStructureMismatch) Error() string + type KeySortMode string + type MapMorphism struct + KeySortMode KeySortMode + type MarshalTransformFunc func(liveForm reflect.Value) (serialForm reflect.Value, err error) + func MakeMarshalTransformFunc(fn interface{}) (MarshalTransformFunc, reflect.Type) + type ReflectRoute []int + func (rr ReflectRoute) TraverseToValue(v reflect.Value) reflect.Value + type StructMap struct + Fields []StructMapEntry + type StructMapEntry struct + Ignore bool + OmitEmpty bool + ReflectRoute ReflectRoute + SerialName string + Type reflect.Type + type StructMapEntry_RFC7049 []StructMapEntry + func (x StructMapEntry_RFC7049) Len() int + func (x StructMapEntry_RFC7049) Less(i, j int) bool + func (x StructMapEntry_RFC7049) Swap(i, j int) + type StructMapEntry_byFieldRoute []StructMapEntry + func (x StructMapEntry_byFieldRoute) Len() int + func (x StructMapEntry_byFieldRoute) Less(i, j int) bool + func (x StructMapEntry_byFieldRoute) Swap(i, j int) + type StructMapEntry_byName []StructMapEntry + func (x StructMapEntry_byName) Len() int + func (x StructMapEntry_byName) Less(i, j int) bool + func (x StructMapEntry_byName) Swap(i, j int) + type UnionKeyedMorphism struct + Elements map[string]*AtlasEntry + KnownMembers []string + Mappings map[uintptr]string + type UnmarshalTransformFunc func(serialForm reflect.Value) (liveForm reflect.Value, err error) + func MakeUnmarshalTransformFunc(fn interface{}) (UnmarshalTransformFunc, reflect.Type)