util

package module
v0.0.0-...-90f2f4c Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = gocql.ErrNotFound
	ErrNilPtr   = errors.New("nil")
)

Common errors.

Functions

func EpsilonRange

func EpsilonRange(d time.Duration) (a, b time.Duration)

EpsilonRange returns start and end of range 5% close to provided value.

func ErrValidate

func ErrValidate(err error) error

ErrValidate marks error as a validation error, if err is not nil.

func IsErrValidate

func IsErrValidate(err error) bool

IsErrValidate checks if given error is a validation error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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