Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TextMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem()
View Source
var TextUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem()
Functions ¶
func DecodeAttributeValueToInterface ¶
func DecodeAttributeValueToInterface(attr *AttributeValue, item interface{}) error
Types ¶
type AttributeValue ¶
type AttributeValue struct { B []byte BOOL *bool S *string N *string NULL *bool M AttributeValueMap L []*AttributeValue }
func DecodeToAttributeValue ¶
func DecodeToAttributeValue(data []byte) (*AttributeValue, error)
func EncodeToAttributeValue ¶
func EncodeToAttributeValue(item interface{}) (*AttributeValue, error)
func MustEncodeToAttributeValue ¶
func MustEncodeToAttributeValue(item interface{}) *AttributeValue
func (*AttributeValue) IsValid ¶
func (a *AttributeValue) IsValid() bool
func (*AttributeValue) MarshalJSON ¶
func (a *AttributeValue) MarshalJSON() ([]byte, error)
func (*AttributeValue) Type ¶
func (a *AttributeValue) Type() AttributeValueType
type AttributeValueMap ¶
type AttributeValueMap map[string]*AttributeValue
type AttributeValueType ¶
type AttributeValueType int
const ( INVALID_ATTRIBUTEVALUE_TYPE AttributeValueType = iota B BOOL L M N NULL S )
func (AttributeValueType) MarshalJSON ¶
func (a AttributeValueType) MarshalJSON() ([]byte, error)
func (AttributeValueType) String ¶
func (a AttributeValueType) String() string
func (*AttributeValueType) UnmarshalJSON ¶
func (a *AttributeValueType) UnmarshalJSON(d []byte) error
type DecodeError ¶
func (DecodeError) Error ¶
func (e DecodeError) Error() string
type EncodeError ¶
type EncodeError struct {
Message string
}
func (EncodeError) Error ¶
func (e EncodeError) Error() string
Click to show internal directories.
Click to hide internal directories.