MCPcopy Create free account
hub / github.com/google/go-cloud / encodeValue

Function encodeValue

docstore/awsdynamodb/v2/codec.go:138–144  ·  view source on GitHub ↗
(v any)

Source from the content-addressed store, hash-verified

136}
137
138func encodeValue(v any) (dyn2Types.AttributeValue, error) {
139 var e encoder
140 if err := driver.Encode(reflect.ValueOf(v), &e); err != nil {
141 return nil, err
142 }
143 return e.av, nil
144}
145
146func encodeFloat(f float64) dyn2Types.AttributeValue {
147 return &dyn2Types.AttributeValueMemberN{Value: strconv.FormatFloat(f, 'f', -1, 64)}

Callers 2

encodeDocKeyFieldsFunction · 0.70
newPutMethod · 0.70

Calls 1

EncodeFunction · 0.92

Tested by

no test coverage detected