DecodeToString decodes and renders an encoded value.
(encoded string)
| 50 | |
| 51 | // DecodeToString decodes and renders an encoded value. |
| 52 | func (f *FloatSetting) DecodeToString(encoded string) (string, error) { |
| 53 | fv, err := f.DecodeValue(encoded) |
| 54 | if err != nil { |
| 55 | return "", err |
| 56 | } |
| 57 | return EncodeFloat(fv), nil |
| 58 | } |
| 59 | |
| 60 | // DecodeValue decodes the value into a float. |
| 61 | func (f *FloatSetting) DecodeValue(encoded string) (float64, error) { |
nothing calls this directly
no test coverage detected