On 8 Oct 2020, at 5:18, David Skinner wrote:

> When I do an API I may have a Doit and a MustDoit, one returns an error and
> the other panics. My way of keeping the code clean unless I can actually do
> something about the error.

Have a look at https://github.com/ridge/must — I got tired of writing Must*
functions and also of lack of Must* in various libraries.

It only covers simple cases, but works pretty well in practice.

-- 
Misha

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/8FE928AC-7C36-458D-8181-DEC364094180%40ridge.co.

Reply via email to