Re:REST Servers in Go: Part 1 – standard library
by mcdoker18 on Sunday January 17, 2021 @08:34AM
(#25810509)
Good advice!
A small addition in the third point: you can create a separate interface for HTTP errors, for example:
You can apply the same approach for the HTTP body in case of error.
[ Parent
| on HN ]
There are no comments on this comment yet.