Compare commits

...

2 commits

Author SHA1 Message Date
Sofya Mikhaylova
3caef40ace
Merge 81b6afad9b into 547861c49b 2024-04-04 01:26:49 +00:00
sophistik
81b6afad9b method Ptr() 2021-10-25 23:53:06 +03:00

View file

@ -1834,6 +1834,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 {