MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / FloatValue

Struct FloatValue

values.go:41–43  ·  view source on GitHub ↗

FloatValue is a convenience value wrapper for a float64, usable as FloatValue{3.14}

Source from the content-addressed store, hash-verified

39// FloatValue is a convenience value wrapper for a float64, usable as
40// FloatValue{3.14}
41type FloatValue struct {
42 F float64
43}
44
45func (fv FloatValue) ToAV() dynamodb.AttributeValue {
46 return dynamodb.AttributeValue{N: aws.String(strconv.FormatFloat(fv.F, 'G', 17, 64))}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected