MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / DecodeToString

Method DecodeToString

pkg/settings/float.go:52–58  ·  view source on GitHub ↗

DecodeToString decodes and renders an encoded value.

(encoded string)

Source from the content-addressed store, hash-verified

50
51// DecodeToString decodes and renders an encoded value.
52func (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.
61func (f *FloatSetting) DecodeValue(encoded string) (float64, error) {

Callers

nothing calls this directly

Calls 2

DecodeValueMethod · 0.95
EncodeFloatFunction · 0.85

Tested by

no test coverage detected