Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
You should invoke defer AFTER checking for error, not before. https://pkg.go.dev/net/http#Client.Do
I could win a gold medal in the olympic 100m dash, but the other guys keep cheating by running faster than me. Life sure is cruel.
Using what's available to you hardly counts as cheating :P But yeah- I kinda wanted to write a proper method for converting to binary myself, ended up doing the above.
A Lazy developer is an effective developer :D
That's just cheating, not a "clever" solution.
Loading collection data...
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
You should invoke defer AFTER checking for error, not before.
https://pkg.go.dev/net/http#Client.Do
I could win a gold medal in the olympic 100m dash, but the other guys keep cheating by running faster than me. Life sure is cruel.
Using what's available to you hardly counts as cheating :P
But yeah- I kinda wanted to write a proper method for converting to binary myself, ended up doing the above.
A Lazy developer is an effective developer :D
That's just cheating, not a "clever" solution.