MCPcopy Create free account
hub / github.com/cockroachdb/apd / UnmarshalText

Method UnmarshalText

decimal.go:794–797  ·  view source on GitHub ↗

UnmarshalText implements the encoding.TextUnmarshaler interface.

(b []byte)

Source from the content-addressed store, hash-verified

792
793// UnmarshalText implements the encoding.TextUnmarshaler interface.
794func (d *Decimal) UnmarshalText(b []byte) error {
795 _, _, err := d.SetString(string(b))
796 return err
797}
798
799// MarshalText implements the encoding.TextMarshaler interface.
800func (d *Decimal) MarshalText() ([]byte, error) {

Callers

nothing calls this directly

Calls 1

SetStringMethod · 0.95

Tested by

no test coverage detected