Present returns true if a value is present. It indicates that the underlying DynamoDB AttributeValue has a data in any one of its fields. If you already know the type of your value, you can call the convenience method (like String() or Int()) or you can retrieve the underlying dynamodb.AttributeValu
()
| 130 | // or you can retrieve the underlying dynamodb.AttributeValue struct with ToAV and perform |
| 131 | // your down decoding. |
| 132 | func (rv ReturnValue) Present() bool { |
| 133 | return !rv.Empty() |
| 134 | } |
| 135 | |
| 136 | // Equals checks equality by comparing the underlying dynamodb.AttributeValues. If they |
| 137 | // both hold the same value, as indicated by the rules of reflect.DeepEqual, Equals will return true. |