GitHub Issuer
Welcome back! Though if you haven’t read the first part, you may want to. We’re expanding on the code that we write last t...
For further actions, you may consider blocking this person and/or reporting abuse
Quick pointer, because it's common in learning Go.
Is better done via Unmarshal:
Decoders should be used when the incoming data is an
io.Reader
, to handle processing streams of data without buffering everything first. Once the data is buffered into a byte slice (byValidatePayload
), thenUnmarshal
is much more efficient.Good call! I used
decoder
in the first pass of the code and didn't think to swap over tounmarshal
. I'll add a note to the post. 👍