This commit is contained in:
Sofya Mikhaylova 2024-05-08 21:17:10 +08:00 committed by GitHub
commit 03084ff1ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1868,6 +1868,11 @@ func (d Decimal) Value() (driver.Value, error) {
return d.String(), nil 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 // UnmarshalText implements the encoding.TextUnmarshaler interface for XML
// deserialization. // deserialization.
func (d *Decimal) UnmarshalText(text []byte) error { func (d *Decimal) UnmarshalText(text []byte) error {