Documentation ¶
Index ¶
- func DefaultComplexIfError(err error, value complex128, defaultValue complex128) complex128
- func DefaultFloat64IfError(err error, value float64, defaultValue float64) float64
- func DefaultIfError(value bool, err error) bool
- func DefaultIntIfError(err error, value int, defaultValue int) int
- func DefaultUint64IfError(err error, value uint64, defaultValue uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultComplexIfError ¶
func DefaultComplexIfError(err error, value complex128, defaultValue complex128) complex128
DefaultComplexIfError if error use defaultValue
func DefaultFloat64IfError ¶
DefaultFloat64IfError if error use defaultValue
func DefaultIfError ¶
DefaultIfError if error use false
func DefaultIntIfError ¶
DefaultIntIfError if error use defaultValue
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.