json.Decoder vs json.Unmarshal
128down voteaccepted |
It really depends on what your input is. If you look at the implementation of the So a better rule of thumb is this:
For the case of reading from an HTTP request, I'd pick |
128down voteaccepted |
It really depends on what your input is. If you look at the implementation of the So a better rule of thumb is this:
For the case of reading from an HTTP request, I'd pick |