]> Cypherpunks repositories - gostls13.git/commit
math/big: implement JSON un/marshaling support for Ints
authorRobert Griesemer <gri@golang.org>
Wed, 23 May 2012 00:20:37 +0000 (17:20 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 23 May 2012 00:20:37 +0000 (17:20 -0700)
commit13a59b8c6d092075c0ff9d6ec3b5d43b6ead7b39
tree50291285311e18e7a91390ef5cfb75d800289ec3
parent4f7c33cd5ad9181068be0ed0514f9fc9fc36c6ec
math/big: implement JSON un/marshaling support for Ints

Also: simplified some existing tests.

No support for Rats for now because the precision-preserving
default notation (fractions of the form a/b) is not a valid
JSON value.

Fixes #3657.

R=golang-dev, bradfitz, rsc
CC=golang-dev
https://golang.org/cl/6211079
src/pkg/math/big/int.go
src/pkg/math/big/int_test.go
src/pkg/math/big/rat_test.go