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.
Directories ¶
Path | Synopsis |
---|---|
Package thread provides a simple way to run functions in goroutines with error handling.
|
Package thread provides a simple way to run functions in goroutines with error handling. |
Package types provides type definitions for various data types.
|
Package types provides type definitions for various data types. |
Click to show internal directories.
Click to hide internal directories.