method Ptr()

This commit is contained in:
sophistik 2021-10-25 23:53:06 +03:00
parent fa3b22f4d4
commit 81b6afad9b

View file

@ -1424,6 +1424,11 @@ func (d Decimal) Value() (driver.Value, error) {
return d.String(), nil
}
// Decimal returns a pointer to struct
func (d Decimal) Ptr() *Decimal {
return &d
}
// UnmarshalText implements the encoding.TextUnmarshaler interface for XML
// deserialization.
func (d *Decimal) UnmarshalText(text []byte) error {