mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-22 12:30:49 +01:00
Merge 81b6afad9b
into 80ec940054
This commit is contained in:
commit
e006f3f838
1 changed files with 5 additions and 0 deletions
|
@ -1863,6 +1863,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 {
|
||||
|
|
Loading…
Reference in a new issue