go-ethereum/common
Felix Lange d304da3803 common/hexutil: implement TextMarshaler, TextUnmarshaler
This commit makes the wrapper types more generally applicable.
encoding.TextMarshaler is supported by most codec implementations (e.g.
for yaml).

The tests now ensure that package json actually recognizes the custom
marshaler implementation irrespective of how it is implemented.

The Uint type has new tests, too. These are tricky because uint size
depends on the CPU word size. Turns out that there was one incorrect
case where decoding returned ErrUint64Range instead of ErrUintRange.
2017-03-02 14:05:46 +01:00
..
compiler cmd,eth,les,internal: remove natspec support 2017-01-17 12:13:50 +01:00
hexutil common/hexutil: implement TextMarshaler, TextUnmarshaler 2017-03-02 14:05:46 +01:00
math all: unify big.Int zero checks, use common/math in more places (#3716) 2017-02-28 15:09:11 +01:00
mclock les: light client protocol and API 2016-11-09 02:12:53 +01:00
number all: fix license headers one more time 2015-07-23 18:35:11 +02:00
big.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
bytes.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
bytes_test.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
debug.go core: added basic chain configuration 2016-04-01 01:01:10 +02:00
format.go all: fix issues reported by honnef.co/go/simple/cmd/gosimple 2017-01-06 18:18:07 +01:00
main_test.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
path.go common, node: move datadir defaults into package node 2016-09-16 15:24:31 +02:00
size.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
size_test.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
test_utils.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
types.go common/hexutil: implement TextMarshaler, TextUnmarshaler 2017-03-02 14:05:46 +01:00
types_template.go common: move big integer math to common/math (#3699) 2017-02-26 22:21:51 +01:00
types_test.go common/hexutil: implement TextMarshaler, TextUnmarshaler 2017-03-02 14:05:46 +01:00