package
0.0.11
Repository: https://github.com/shawnsmithdev/ddbmap.git
Documentation: pkg.go.dev

# Functions

DecodeBinary converts an AttributeValue into a []byte, which will be empty if the value is not a Binary (B).
DecodeBinarySet converts an AttributeValue into a [][]byte, which will be empty if the value is not a BinarySet (BS).
DecodeBool converts an AttributeValue into a bool, and will panic if the value is not a Boolean (BOOL).
DecodeInt converts an AttributeValue into an int, and will panic if the value is not an integral Number, if it is a NULL, or if it will not fit in an int without losing precision.
DecodeIntSet converts an AttributeValue into an []int, which will be empty if the value is not a NumberSet (NS), or if any value in the set is not an integral number that will fit in an int.
DecodeList converts an AttributeValue into a []AttributeValue, which will be empty if the value is not a List (L).
DecodeMap converts an AttributeValue into a map[string]AttributeValue, which will be empty if the value is not a Map (M).
DecodeNumber converts an AttributeValue into a Number, and will panic if the value is not a Number (N), or if the value is a NULL.
DecodeString converts an AttributeValue into a String, which will be empty if the value if not a String (S).
DecodeStringSet converts an AttributeValue into a []string, which will be empty if the value is not a StringSet (SS).
EncodeBinary converts a []byte into an AttributeValue with the Binary (B) type.
EncodeBinarySet converts a [][]byte into an AttributeValue with the BinarySet (BS) type.
EncodeBool converts a bool into an AttributeValue with the Boolean (BOOL) type.
EncodeInt converts an int into an AttributeValue with the Number (N) type.
EncodeIntSet converts an []int into an AttributeValue with the NumberSet (NS) type.
EncodeList converts a []AttributeValue into an AttributeValue with the List (L) type.
EncodeMap converts a map[string]AttributeValue into an AttributeValue with the Map (M) type.
EncodeNumber converts a Number into an AttributeValue with the Number (N) type.
EncodeString converts a string into an AttributeValue with the String (S) type.
EncodeStringSet converts a []string into an AttributeValue with the StringSet (SS) type.
FloatToNumber converts a float64 into a Number.
IntToNumber converts an int into a Number.
IsNull returns true if the given AttributeValue is a Null (NULL).
TryDecodeBool attempts to convert an AttributeValue into a bool.
TryDecodeInt attempts to convert an AttributeValue into an int.
TryDecodeNumber attempts to convert and AttributeValue into a Number.
TryDecodeString attempts to convert an AttributeValue into a string.