MCPcopy
hub / github.com/aws/aws-lambda-go / Number

Method Number

events/attributevalue.go:66–69  ·  view source on GitHub ↗

Number provides access to an attribute of type Number. DynamoDB sends the values as strings. For convenience please see also the methods Integer() and Float(). Method panics if the attribute is not of type Number.

()

Source from the content-addressed store, hash-verified

64// the methods Integer() and Float().
65// Method panics if the attribute is not of type Number.
66func (av DynamoDBAttributeValue) Number() string {
67 av.ensureType(DataTypeNumber)
68 return av.value.(string)
69}
70
71// Int64 provides access to an attribute of type Number.
72// DynamoDB sends the values as strings. For convenience this method

Callers 8

Int64Method · 0.95
IntegerMethod · 0.95
FloatMethod · 0.95
TestUnmarshalNumberFunction · 0.95
TestUnmarshalListFunction · 0.80
TestUnmarshalMapFunction · 0.80

Calls 1

ensureTypeMethod · 0.95

Tested by 5

TestUnmarshalNumberFunction · 0.76
TestUnmarshalListFunction · 0.64
TestUnmarshalMapFunction · 0.64