Must¶
func Must(err error, messages ...string)
Must panics if the error is not nil. This is useful for initialization or setup code where errors should never occur. The optional messages are formatted and included in the panic message.
func Must(err error, messages ...string)
Must panics if the error is not nil. This is useful for initialization or setup code where errors should never occur. The optional messages are formatted and included in the panic message.