Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Alex Harford 4c78c975fe Tighten restrictions on float decoding (#171)
ParseFloat() accepts strings that contain digits with a single 'e'
character somewhere in the middle as valid floats. The YAML spec does
not accept these.

This causes problems especially when dealing with short commit hashes,
e.g. `123456e1`
2017-01-25 12:37:19 -02:00
Jordan Liggitt 1dd72ac392 Add support for uint64 and 64-bit binary notation
Add decode tests for uint,uint64,int,int64,float32,float64

Unmarshal uint64, use math constants for precision boundaries

Remove uint case, let uint64 cover uint overflows

Handle int64 and uint64 with 0b... notation

Make test cases contain literal values, reference math constants
2014-10-29 16:42:57 -04:00
Gustavo Niemeyer 91eb945ac0 Drop obsolete note. 2014-09-22 18:33:56 -03:00
Gustavo Niemeyer b51f82a2e3 New marshaler and unmarshaler interfaces. 2014-09-19 20:35:58 -03:00
Gustavo Niemeyer bc27649cd5 Support !!binary data.
Fixes #31.
Fixes #32.
2014-09-18 17:04:24 -03:00
Gustavo Niemeyer a6dc653f93 Whitelist good panics instead of bad ones. 2014-09-17 16:17:08 -03:00
Gustavo Niemeyer feb4ca7964 Fix handling of < in values, broken by map merging
Fixes issue #24.
2014-08-14 15:36:29 -03:00
Gustavo Niemeyer 72c33f6840 Support map merging.
Fixes #1.
2014-04-11 17:07:38 -03:00
Abel Deuring 399c3345e0 Fix bug 1243827: Underscores sometimes removed from string values. 2014-03-14 13:22:42 +01:00
Gustavo Niemeyer ca3d523f32 goyaml is now yaml. 2014-03-05 15:48:33 -03:00
John Arbash Meinel 2afc2e57e0 Just run go fmt over the code. 2013-03-26 15:03:15 +04:00
Roger Peppe 687eda9240 gofix + rune fix 2011-12-15 15:22:49 +00:00
Roger Peppe 6491ec31f7 error fixes 2011-11-24 19:47:20 +00:00
Gustavo Niemeyer 85db785e81 Use launchpad.net/gocheck and gofmt. 2011-04-13 18:20:44 -03:00
Gustavo Niemeyer c6314f5b62 make gofmt + s/float/float64/ 2011-01-20 10:06:04 -02:00
Gustavo Niemeyer e334f8522a Implemented encoding of values. 2011-01-10 16:03:42 -02:00
Gustavo Niemeyer 910de08261 Lots of enhancements on decoding (setter, tags, errors, etc). 2011-01-07 21:11:18 -02:00
Gustavo Niemeyer 41168bb7ed Progress in decoding values. 2011-01-05 11:17:34 -02:00