boulder/must
Jacob Hoffman-Andrews 8dcbc4c92f
Add must.Do utility function (#6955)
This can take two values (typically the return values of a two-value
function) and panic if the error is non-nil, returning the interesting
value. This is particularly useful for cases where we statically know
the call will succeed.

Thanks to @mcpherrinm for the idea!
2023-06-26 14:43:30 -07:00
..
must.go Add must.Do utility function (#6955) 2023-06-26 14:43:30 -07:00
must_test.go Add must.Do utility function (#6955) 2023-06-26 14:43:30 -07:00