profile
viewpoint

Ask questionsv3 equivalent of v2's MapSlice and MapItem?

I'm sure there's a very obvious answer to this, but v2 has the very handy MapSlice and MapItem types for order-preserving parses and emission.

What's the v3 method of keeping the round-tripping stable?

go-yaml/yaml

Answer questions jmhodges

Sorry should have left an example: I had to figure out on my own that MappingNodes have their keys at the even indexes of Content, and values in the odd indexes. And then do the fiddly work for updating that, too)

useful!
source:https://uonfu.com/
Github User Rank List