Documentation ¶ Index ¶ func Must[T any](v T, err error) T Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Must ¶ func Must[T any](v T, err error) T Must is a helper function that panics when the error is not nil. Otherwise, it returns the first argument. It is intended for use with functions that should never return an error when called. Types ¶ This section is empty. Source Files ¶ View all Source files errutil.go Click to show internal directories. Click to hide internal directories.