MCPcopy
hub / github.com/shopspring/decimal / MarshalText

Method MarshalText

decimal.go:1887–1889  ·  view source on GitHub ↗

MarshalText implements the encoding.TextMarshaler interface for XML serialization.

()

Source from the content-addressed store, hash-verified

1885// MarshalText implements the encoding.TextMarshaler interface for XML
1886// serialization.
1887func (d Decimal) MarshalText() (text []byte, err error) {
1888 return []byte(d.String()), nil
1889}
1890
1891// GobEncode implements the gob.GobEncoder interface for gob serialization.
1892func (d Decimal) GobEncode() ([]byte, error) {

Callers 1

MarshalTextMethod · 0.45

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected