lib

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	B  uint64 = 1
	KB        = B << 10
	MB        = KB << 10
	GB        = MB << 10
	TB        = GB << 10
	PB        = TB << 10
	EB        = PB << 10
)

Variables

This section is empty.

Functions

func AvgInt

func AvgInt(args ...int) float64

func AvgInt64

func AvgInt64(args ...int64) float64

func AvgUInt

func AvgUInt(args ...uint) float64

func AvgUInt64

func AvgUInt64(args ...uint64) float64

func IsNil

func IsNil(v interface{}) bool

func JSONMarshal

func JSONMarshal(t interface{}) []byte

func MaxInt

func MaxInt(args ...int) int

func MaxInt64

func MaxInt64(args ...int64) int64

func MaxUInt

func MaxUInt(args ...uint32) uint32

func MinInt

func MinInt(args ...int) int

func MinInt64

func MinInt64(args ...int64) int64

func MinUInt

func MinUInt(args ...uint) uint

func MinUInt64

func MinUInt64(args ...uint64) uint64

func ParseSafeFloat

func ParseSafeFloat(s string) float64

func ParseSafeInt

func ParseSafeInt(s string) int

func ParseSafeInt64

func ParseSafeInt64(s string) int64

func RandomBetween

func RandomBetween(min, max int) int

RandomBetween Create random number between two ranges

func SumInt

func SumInt(args ...int) int

func SumInt64

func SumInt64(args ...int64) int64

func SumUInt

func SumUInt(args ...uint) uint

SumUInt Sum of uint32

func SumUInt64

func SumUInt64(args ...uint64) uint64

Types

This section is empty.

Directories

Path Synopsis
T
cli
Package cli provides a minimal framework for creating and organizing command line Go applications.
Package cli provides a minimal framework for creating and organizing command line Go applications.
internal/convert
Package convert contains common conversion interfaces.
Package convert contains common conversion interfaces.
internal/refconv
Package refconv implements the Converter interface by using the standard libraries reflection package.
Package refconv implements the Converter interface by using the standard libraries reflection package.
jwt
Package jwt is a JSON Web Token signer, verifier and validator.
Package jwt is a JSON Web Token signer, verifier and validator.
log
Package validate validates Go structs and types recursively based on tags.
Package validate validates Go structs and types recursively based on tags.

Jump to

Keyboard shortcuts

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