pullrequests Search Results · repo:goccy/go-yaml language:Go
Filter by
443 results
(130 ms)443 results
ingoccy/go-yaml (press backspace or delete to remove)In some cases, special initialization of slices, structs, and maps is required. For example, allocating a slice from
sync.Pool or setting default values for structs in a slice where the number of elements ...
maniak89
- 1
- Opened on Sep 30
- #796
This would be paired with DisallowUnknownField where you generally want to make sure the yaml does not have unknown
fields, but allow for cases where the yaml has some extra stuff in it, e.g. for custom ...
cpuguy83
- 3
- Opened on Sep 26
- #795
Before submitting your PR, please confirm the following.
- [x] Describe the purpose for which you created this PR.
- [x] Create test code that corresponds to the modification
Current go-yaml will ...
quentinmit
- 1
- Opened on Sep 20
- #792
Builds on #668, since that PR seems stale and I d like to make use of this feature.
@goccy I ve attempted to add the test cases you requested in
https://github.com/goccy/go-yaml/pull/668#issuecomment-2675983036 ...
thanethomson
- 1
- Opened on Sep 6
- #790
Hello, This pr allow to use pointer as key map. This allow to have maps like this map[*regexp.Regexp][]*regexp.Regexp so
we can unmarshal it correctly. Thx !
thecampagnards
- 8
- Opened on Aug 19
- #788
Unmarshal from yamls with sequence merge key has been working fine for generic maps (aka. map[string]any types), but has
been broken for structs: see #776 for more details.
This commits fixes that, by ...
Madoxen
- 1
- Opened on Aug 11
- #783
This PR fixes the unmarshaling logic to properly handle YAML values with explicit !!int tags. For example:
var data map[string]int
err := yaml.Unmarshal([]byte( a: !!int 42 ), data)
Error returned: ...
rybakit
- 1
- Opened on Jun 24
- #770
Before submitting your PR, please confirm the following.
See https://github.com/goccy/go-yaml/issues/764
The current MarshalYAML implementation makes no allowance for functions that need to return carefully ...
jm-positron
- 2
- Opened on Jun 23
- #769
Before submitting your PR, please confirm the following.
- [ ] Describe the purpose for which you created this PR.
- [ ] Create test code that corresponds to the modification
inem
- 1
- Opened on Jun 23
- #768
It fixes a bug where parsing a multi-document yaml file with an empty document (--- with no content) would cause the
parser to stop processing subsequent documents. The document token grouping logic in ...
semihbkgr
- 1
- Opened on Jun 23
- #767