GobEncode implements the gob.GobEncoder interface for gob serialization.
()
| 1890 | |
| 1891 | // GobEncode implements the gob.GobEncoder interface for gob serialization. |
| 1892 | func (d Decimal) GobEncode() ([]byte, error) { |
| 1893 | return d.MarshalBinary() |
| 1894 | } |
| 1895 | |
| 1896 | // GobDecode implements the gob.GobDecoder interface for gob serialization. |
| 1897 | func (d *Decimal) GobDecode(data []byte) error { |