Float returns the value as float64. Will be zero-valued if the value is not numeric. If the value was originally stored as an int, it will be converted to float64 based on parsing the string representation, so there is some scope for overflows being corrected silently.
()
| 100 | // was originally stored as an int, it will be converted to float64 based on parsing the string |
| 101 | // representation, so there is some scope for overflows being corrected silently. |
| 102 | func (rv ReturnValue) Float() float64 { |
| 103 | f, _ := strconv.ParseFloat(aws.StringValue(rv.av.N), 64) |
| 104 | return f |
| 105 | } |
| 106 | |
| 107 | // Bytes returns the value as a byte slice. Will be nil if the value is not actually a byte slice. |
| 108 | func (rv ReturnValue) Bytes() []byte { |
no outgoing calls