7 ms·
The go-kit project has a couple other examples for how to handle errors and http status code. https://github.com/go-kit/kit/blob/master/examples/shipping/booki
by zalmoxes 10y ago
The go-kit project has a couple other examples for how to handle errors and http status code.
https://github.com/go-kit/kit/blob/master/examples/shipping/booking/transport.go#L175-L178 https://github.com/go-kit/kit/blob/master/examples/shipping/...
and more recently
https://github.com/go-kit/kit/blob/master/examples/addsvc/transport_http.go https://github.com/go-kit/kit/blob/master/examples/addsvc/tr...