MarshalText implements the encoding.TextMarshaler interface for XML serialization.
()
| 2111 | // MarshalText implements the encoding.TextMarshaler interface for XML |
| 2112 | // serialization. |
| 2113 | func (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 |
nothing calls this directly
no test coverage detected