Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Must ¶
Must is a utility function that ensures a value is not nil and returns it. If the error is not nil, it panics with the error message.
func MustOrDefault ¶
MustOrDefault is a utility function that ensures a value is not nil and returns it. If the error is not nil, it returns the default value.
func MustOrNil ¶
MustOrNil is a utility function that ensures a value is not nil and returns it. If the error is not nil, it returns nil.
func MustOrZero ¶
MustOrZero is a utility function that ensures a value is not nil and returns it. If the error is not nil, it returns a zero value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.