2 ms·
i do agree that it makes sense to use the stdlib where possible. however i am a bit wary... my first "real" (but small) project in go was to process some xml.
by abiox 8y ago
i do agree that it makes sense to use the stdlib where possible.
however i am a bit wary... my first "real" (but small) project in go was to process some xml. turns out the stdlib parser doesn't handle self-closing tags very well, and would simply not pick up some important content from files i was working with.
i would wager the json stuff is probably a much hotter code path so it's probably fine.
- muzzammildotxyz 8y agoThanks for your suggestion. :)