Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilValue = errors.New("err: nil value")
ErrNilValue indicate both co-value and err are nil
Functions ¶
func HandleNillable ¶ added in v0.3.0
HandleNillable process cornor case of error handling. Patch fucking stupid lang design.
- if err is not nil, return val & err
- if val is nil, return nil & ErrNilValue
- return val & nil
Types ¶
Click to show internal directories.
Click to hide internal directories.