diff options
| author | Michael T. Jones <mtj@google.com> | 2014-02-13 08:42:19 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2014-02-13 08:42:19 -0800 |
| commit | eea28f6701ac888d5613470a88d09b634efc1d75 (patch) | |
| tree | e0ef06bb8b8d8a15b6932ef171cb4897dc911d92 /src/pkg/crypto | |
| parent | e0dee49688c1c767e2f81a4dab824ba0be36dcbb (diff) | |
| download | go-eea28f6701ac888d5613470a88d09b634efc1d75.tar.xz | |
math/big: add support for general encoding interfaces
TextMarshaller and TextUnmarshaller to ease transport of
unlimited precision rational numbers.
Fixes #7287.
Consists of encode and decode functions and two test
functions, one using JSON and one using XML. Each
verifies round trips for integers (rationals with
denominator == 1) and for fractional vaues.
LGTM=gri
R=gri, cookieo9, bradfitz, mtj
CC=golang-codereviews
https://golang.org/cl/61180043
Diffstat (limited to 'src/pkg/crypto')
0 files changed, 0 insertions, 0 deletions
