hznumber

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SizeKB = 1024
	SizeMB = 1024 * SizeKB

	Uint64Max = ^uint64(0) // = uint64(math.MaxUint64)
)

Variables

This section is empty.

Functions

func BoolToNumber

func BoolToNumber[T Numeric](ok bool) T

Types

type Float

type Float interface {
	~float32 | ~float64
}

type Int

type Int interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Numeric

type Numeric interface {
	Int | Uint | Float
}

type Uint

type Uint interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64
}

Jump to

Keyboard shortcuts

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