defaultx

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

func DefaultFloat64IfError(err error, value float64, defaultValue float64) float64

DefaultFloat64IfError if error use defaultValue

func DefaultIfError

func DefaultIfError(value bool, err error) bool

DefaultIfError if error use false

func DefaultIntIfError

func DefaultIntIfError(err error, value int, defaultValue int) int

DefaultIntIfError if error use defaultValue

func DefaultUint64IfError

func DefaultUint64IfError(err error, value uint64, defaultValue uint64) uint64

DefaultUint64IfError if error use defaultValue

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL