mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-25 05:40:49 +01:00
Compare commits
2 commits
3caef40ace
...
3d809ca6b1
Author | SHA1 | Date | |
---|---|---|---|
|
3d809ca6b1 | ||
|
81b6afad9b |
1 changed files with 5 additions and 0 deletions
|
@ -1557,6 +1557,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 {
|
||||||
|
|
Loading…
Reference in a new issue