python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Go unmarshal yaml and preserve order
Let's say I have the following yaml file:
key1:
- "Value1"
- "Value2"
key2:
- "Value3"
- "Value4"
And I want to unmarshal that in Go. I can let...

noranraskin
Votes: 0
Answers: 1
How do I get python3's marshal.loads to decode strings like in python 2?
I've got some code that needs to load marshalled dictionaries. This works fine in python 2.
Sample data (base64 encoded):
e3MEAAAAY29kZXMEAAAAc3RhdHMEAAAAVXNlcnMGAAAAcnBldHRpcwUAAABFbWFpbHMLAAAAcnBl
d...
rpetti
Votes: 0
Answers: 0
Unmarshal Nested JSON Object With Go
I'm making requests to an API that returns a JSON structure that is difficult to parse, especially in Go. Here is the gist of the data in tabular form:
Ticker
Jan 3
Jan 4
Jan 5
Jan 6
AAPL
182....
7rhvnn
Votes: 0
Answers: 0
GOLANG json to Protoc with LocalDateTime, not DateTime
I'm working on a middleware using golang.
I'm consuming a REST-API which returns a Date in form of a LocalDateTime (e.g. "created": "2022-01-09T00:00:00",) and it should get mapped...
jemai
Votes: 0
Answers: 1