Versions in this module Expand all Collapse all v0 v0.2.1 Oct 3, 2019 v0.1.0 Sep 29, 2018 Changes in this version + func MarshalRef(value string, otherwise interface{}) ([]byte, error) + func MarshalStrictStruct(value StrictStruct) ([]byte, error) + func NewUnsupportedPropertiesError(v interface{}, m map[string]json.RawMessage) error + func UnmarshalRef(data []byte, destRef *string, destOtherwise interface{}) error + func UnmarshalStrictStruct(data []byte, value StrictStruct) error + type FieldInfo struct + HasJSONTag bool + Index []int + JSONName string + JSONOmitEmpty bool + JSONString bool + MultipleFields bool + Type reflect.Type + TypeIsMarshaller bool + TypeIsUnmarshaller bool + func AppendFields(fields []FieldInfo, parentIndex []int, t reflect.Type) []FieldInfo + type ObjectDecoder struct + Data []byte + func NewObjectDecoder(data []byte) (*ObjectDecoder, error) + func (decoder *ObjectDecoder) DecodeExtensionMap() map[string]json.RawMessage + func (decoder *ObjectDecoder) DecodeStructFieldsAndExtensions(value interface{}) error + type ObjectEncoder struct + func NewObjectEncoder() *ObjectEncoder + func (encoder *ObjectEncoder) Bytes() ([]byte, error) + func (encoder *ObjectEncoder) EncodeExtension(key string, value interface{}) error + func (encoder *ObjectEncoder) EncodeExtensionMap(value map[string]json.RawMessage) error + func (encoder *ObjectEncoder) EncodeStructFieldsAndExtensions(value interface{}) error + type StrictStruct interface + DecodeWith func(decoder *ObjectDecoder, value interface{}) error + EncodeWith func(encoder *ObjectEncoder, value interface{}) error + type TypeInfo struct + Fields []FieldInfo + Type reflect.Type + func GetTypeInfo(t reflect.Type) *TypeInfo + func GetTypeInfoForValue(value interface{}) *TypeInfo + func (typeInfo *TypeInfo) FieldNames() []string + type UnsupportedPropertiesError struct + UnsupportedProperties map[string]json.RawMessage + Value interface{} + func (err *UnsupportedPropertiesError) Error() string