mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-24 21:30:49 +01:00
Compare commits
2 commits
161f04f87d
...
af136c8569
Author | SHA1 | Date | |
---|---|---|---|
|
af136c8569 | ||
|
f20d7c4b90 |
1 changed files with 2 additions and 2 deletions
|
@ -1799,8 +1799,8 @@ func (d Decimal) MarshalJSON() ([]byte, error) {
|
||||||
return []byte(str), nil
|
return []byte(str), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// MarshalYAML implements the yaml.Marshaler interface.
|
// MarshalYAML implements the [yaml.Marshaler] interface.
|
||||||
func (d Decimal) MarshalYAML() (interface{}, error) {
|
func (d Decimal) MarshalYAML() (any, error) {
|
||||||
if MarshalYAMLWithoutQuotes {
|
if MarshalYAMLWithoutQuotes {
|
||||||
n := yaml.Node{
|
n := yaml.Node{
|
||||||
Kind: yaml.ScalarNode,
|
Kind: yaml.ScalarNode,
|
||||||
|
|
Loading…
Reference in a new issue