Jon Bodner
Jon Bodner
Current thinking: PanicAlways mode is a bad idea. If a function doesn't have an error return value, the panic on error behavior might be better behavior. The existing behavior that...
I actually like that helper function quite a bit. Here's a function that extends it a bit to wrap all of the function fields in a struct that match the...
Also see https://google.github.io/styleguide/go/decisions#dont-panic and https://google.github.io/styleguide/go/best-practices#program-checks-and-panics for Google's advice on when to use panic.