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

Method MarshalText

decimal.go:2113–2118  ·  view source on GitHub ↗

MarshalText implements the encoding.TextMarshaler interface for XML serialization.

()

Source from the content-addressed store, hash-verified

2111// MarshalText implements the encoding.TextMarshaler interface for XML
2112// serialization.
2113func (d NullDecimal) MarshalText() (text []byte, err error) {
2114 if !d.Valid {
2115 return []byte{}, nil
2116 }
2117 return d.Decimal.MarshalText()
2118}
2119
2120// Trig functions
2121

Callers

nothing calls this directly

Calls 1

MarshalTextMethod · 0.45

Tested by

no test coverage detected