Documentation ¶
Index ¶
- func MustNoError[T any](t T, e error) T
- func MustNoError2[T, U any](t T, u U, e error) (T, U)
- func MustNoError3[T, U, V any](t T, u U, v V, e error) (T, U, V)
- func MustNoError4[T, U, V, W any](t T, u U, v V, w W, e error) (T, U, V, W)
- func NoError[T any](t T, _ error) T
- func NoError2[T, U any](t T, u U, _ error) (T, U)
- func NoError3[T, U, V any](t T, u U, v V, _ error) (T, U, V)
- func NoError4[T, U, V, W any](t T, u U, v V, w W, _ error) (T, U, V, W)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNoError ¶
MustNoError is similar to NoError, but it panics if the given error is not nil, it is usually a nice helper for chain function calling.
func MustNoError2 ¶
MustNoError2 is similar to NoError2, but it panics if the given error is not nil, it is usually a nice helper for chain function calling.
func MustNoError3 ¶
MustNoError3 is similar to NoError3, but it panics if the given error is not nil, it is usually a nice helper for chain function calling.
func MustNoError4 ¶
MustNoError4 is similar to NoError4, but it panics if the given error is not nil, it is usually a nice helper for chain function calling.
func NoError ¶
NoError ignores the given error, it is usually a nice helper for chain function calling.
func NoError2 ¶
NoError2 ignores the given error, it is usually a nice helper for chain function calling.
Types ¶
This section is empty.