mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 15:31:24 +02:00
chore: update json marshal tests
This commit is contained in:
@@ -108,7 +108,7 @@ func appendUint(v reflect.Value, buf []byte) []byte {
|
||||
}
|
||||
|
||||
func appendFloat(v reflect.Value, buf []byte) []byte {
|
||||
return strconv.AppendFloat(buf, v.Float(), 'f', 2, 64)
|
||||
return strconv.AppendFloat(buf, v.Float(), 'f', -1, 64)
|
||||
}
|
||||
|
||||
func appendWithCustomMarshaler(v reflect.Value, buf []byte) (res []byte, ok bool) {
|
||||
|
||||
Reference in New Issue
Block a user