Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNotError ¶
Logs the error and message with Go's "log" package, but only if the error is not nil. For just MustNotError, you should copy this snippet instead of adding a dependency.
import "fmt" import "log" func MustNotError(err error, msg string, args ...interface{}) { if err != nil { msg = fmt.Sprintf(msg, args...) log.Fatalf("%s: %s", msg, err) } }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.