check

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: GPL-3.0 Imports: 3 Imported by: 39 modules, 397 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForZeroUintFields

func ForZeroUintFields(arg interface{}) error

ForZeroUintFields checks if fields are uint64 and whether are greater than 0

func IfHrp added in v1.2.0

func IfHrp(s string) bool

IfHrp tests if the provided string is human readable - does contain only alphabetic characters

func IfNil

func IfNil(checker NilInterfaceChecker) bool

IfNil tests if the provided interface pointer or underlying object is nil

func IfNilReflect

func IfNilReflect(i interface{}) bool

IfNilReflect tests if the provided interface pointer or underlying pointer receiver is nil

func IsZeroFloat64

func IsZeroFloat64(value float64, epsilon float64) bool

IsZeroFloat64 returns true if the provided absolute value is less than provided absolute epsilon

Types

type NilInterfaceChecker

type NilInterfaceChecker interface {
	IsInterfaceNil() bool
}

NilInterfaceChecker checks if an interface's underlying object is nil

Jump to

Keyboard shortcuts

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