Witold Krecicki
f8db564a0a
Add UnmarshalStrict returning error if yaml has fields that do not exist in structure
2017-07-12 07:44:15 +02:00
Michael Hudson-Doyle
406cad6bb4
make compatible with Go 1.6
...
As documented at http://tip.golang.org/doc/go1.6#reflect , the rules around
embedded unexported struct types containing exported fields are changing in Go
1.6. The same release notes explain how to change existing code, so do that.
2015-12-23 12:11:14 +13:00
Gustavo Niemeyer
7ad95dd079
Fix omitempty support for floats.
2015-06-24 11:29:02 +01:00
Robert
df747160af
Balance parentheses.
2015-02-11 18:27:59 +01:00
Gustavo Niemeyer
5d6f7e02b7
Support inline flag on a map field.
2015-01-19 16:55:52 -02:00
Gustavo Niemeyer
b7dfe2d918
Merge pull request #52 from BrianBland/v2
...
Fix TypeError check in Unmarshal.
2015-01-16 17:10:07 -02:00
Gustavo Niemeyer
e8976af76e
Merge pull request #61 from hkjn/v2
...
gofmt
2015-01-16 17:02:51 -02:00
Gustavo Niemeyer
26b8825233
Support omitempty on struct value fields.
...
Fixes #54 .
2015-01-16 16:45:58 -02:00
Henrik Jonsson
4f03e946c1
runs 'gofmt -w *.go' on gopkg.in/yaml.v2
2014-12-12 17:38:32 +01:00
Brian Bland
3e92d6a11b
Fixes TypeError check in Unmarshal
...
decoder.terrors can be empty but non-nil if the unmarshaler function is called multiple times in UnmarshalYAML.
This fixes the case where d.terrors is empty but has a non-zero capacity, which previously resulted in returning a TypeError with an empty list of error strings.
2014-11-05 10:10:37 -08:00
Gustavo Niemeyer
79f5ef7c40
Trivial documentation fix.
2014-09-24 13:18:00 -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
0cb32393eb
Better unmarshalling for "null".
...
Fixes #35 .
2014-09-17 18:04:12 -03:00
Gustavo Niemeyer
a6dc653f93
Whitelist good panics instead of bad ones.
2014-09-17 16:17:08 -03:00
Shawn Smith
787afde64d
Fix typo
2014-04-29 21:31:57 +09:00
Gustavo Niemeyer
b347253194
Fix GitHub URL.
2014-03-06 05:42:10 -03:00
Gustavo Niemeyer
125a562d7b
Trivial change.
2014-03-06 03:47:33 -03:00
Gustavo Niemeyer
a65e08b082
Mention GitHub URL in the API documentation.
2014-03-05 16:49:41 -03:00
Gustavo Niemeyer
5e76f7cf8c
Added missing yaml.go file
2014-03-05 16:12:48 -03:00