Gustavo Niemeyer
7ad95dd079
Fix omitempty support for floats.
2015-06-24 11:29:02 +01:00
Songmu
43a0256bb2
add failing test cases
2015-05-19 19:38:58 +09:00
Gustavo Niemeyer
d0fefed9b6
Fix timezone handling in time tests.
2015-02-24 19:53:31 -03:00
Gustavo Niemeyer
50f7813e6b
Add time.Time encoding/decoding test.
...
It's not clear this is actually the best way to handle time.Time,
since there is a standard yaml format that may not match time.Time's,
but having tests ensuring the current behavior is basically sane
is a good idea nevertheless.
2015-02-24 15:24:13 -03:00
Gustavo Niemeyer
5d6f7e02b7
Support inline flag on a map field.
2015-01-19 16:55:52 -02:00
Gustavo Niemeyer
1bf6a7ce15
Do not call MarshalText on yaml.Marshaler.
...
Fixes #58 .
2015-01-16 17:58:22 -02:00
Gustavo Niemeyer
71e7ede9d4
Add test ensuring ": " values get quoted.
...
This was reported as PR #43 , but is not reproducible.
2015-01-16 17:22:23 -02:00
Gustavo Niemeyer
26b8825233
Support omitempty on struct value fields.
...
Fixes #54 .
2015-01-16 16:45:58 -02:00
Gustavo Niemeyer
eca94c41d9
Support encoding.TextMarshaler/Unmarshaler.
...
Fixes #38 .
2014-09-27 17:40:03 -03:00
Gustavo Niemeyer
b6b591a3c0
Marshal top-level nils correctly.
...
Merge rogpeppe's branch '001-allow-nil-marshal'.
2014-09-23 11:49:13 -03:00
Gustavo Niemeyer
de3643d77b
Allow non-ASCII characters in plain strings.
...
Fixes #11 .
2014-09-22 18:50:45 -03:00
Gustavo Niemeyer
925f818e2c
v1 => v2
2014-09-22 18:31:54 -03:00
Gustavo Niemeyer
c544d03421
Proper reporting of type errors.
2014-09-19 20:35:58 -03:00
Gustavo Niemeyer
b51f82a2e3
New marshaler and unmarshaler interfaces.
2014-09-19 20:35:58 -03:00
Gustavo Niemeyer
3e542fbf7c
Ordered map support with MapSlice.
2014-09-19 11:01:26 -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
838f4ea961
Marshal base 60 floats quoted for YAML 1.1 compat.
...
Closes #34 .
2014-09-17 15:26:27 -03:00
Roger Peppe
5206f6dd03
marshal top level nil correctly
2014-09-15 17:57:47 +01: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
a5844a8f8f
Add support for marshaling durations.
2014-04-11 17:07:38 -03:00
Gustavo Niemeyer
3d8cfc3754
New gopkg.in versioning pattern.
2014-03-30 18:45:21 -03:00
Gustavo Niemeyer
4f3d34e492
Fix import paths in tests.
2014-03-12 16:02:09 -03:00
Gustavo Niemeyer
ca3d523f32
goyaml is now yaml.
2014-03-05 15:48:33 -03:00
Dave Cheney
b754a4fe6a
gofmt
2013-11-14 13:37:57 +11:00
Dave Cheney
2f2fd02e5a
Fix encoding error with bare hyphen
2013-11-14 13:37:06 +11:00
Gustavo Niemeyer
77b5164255
Review by Roger plus overall naming improvements.
2013-06-19 13:52:23 -04:00
Gustavo Niemeyer
8691640bc7
Add support for ,inline flag with struct values.
...
This also adds the code to do inlining of maps, as supported by bson
(the code was copied from mgo/bson), but it's disabled for the moment
as I'll need more time to implement it.
2013-06-17 23:40:41 -04:00
Gustavo Niemeyer
d0b6f3facf
Added quoted multi-line string test.
2013-04-29 12:13:04 -03:00
Gustavo Niemeyer
e2fbf5b72a
Reformat encoder tests. Other minor tweaks.
2013-04-28 11:05:46 -03:00
Gustavo Niemeyer
e720624475
Support "-" tag.
2013-04-17 15:55:21 -03:00
Gustavo Niemeyer
4d6bb54d8a
Fix a couple of bugs reported by Roger.
2013-04-17 15:49:08 -03:00
Gustavo Niemeyer
fdc1ab4610
Add empty string to test as well, as suggested by Dave.
2012-09-20 10:33:26 +01:00
Gustavo Niemeyer
c78cd3ebd8
More tests, after Dave's suggestions.
2012-09-20 10:27:14 +01:00
Gustavo Niemeyer
eea198a9c5
Sort map keys.
2012-09-20 10:00:32 +01:00
Roger Peppe
3b0eedc5a4
make omitzero omit nil pointers.
2011-11-24 19:50:00 +00:00
Roger Peppe
6491ec31f7
error fixes
2011-11-24 19:47:20 +00:00
Gustavo Niemeyer
1632dd8118
Fixed tag support for r59. Tweaked flag style.
2011-08-02 22:27:46 -03:00
Gustavo Niemeyer
6941443daa
Ported to current weekly.
2011-06-24 21:53:13 -03: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
f0766b44ca
Implemented flow support for struct fields.
2011-01-10 16:19:54 -02:00
Gustavo Niemeyer
e334f8522a
Implemented encoding of values.
2011-01-10 16:03:42 -02:00