math

package
v0.0.0-...-6b32d26 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsInt

func AbsInt(i int) int

AbsInt is an ABS function for int type

func AbsInt64

func AbsInt64(i int64) int64

AbsInt64 is an ABS function for int64 type

func MaxInt

func MaxInt(i1, i2 int) int

func MaxInt64

func MaxInt64(i1, i2 int64) int64

func MaxString

func MaxString(i1, i2 string) string

func MaxUInt

func MaxUInt(i1, i2 uint) uint

func MaxUInt64

func MaxUInt64(i1, i2 uint64) uint64

func MinInt

func MinInt(i1, i2 int) int

func MinInt64

func MinInt64(i1, i2 int64) int64

func MinString

func MinString(i1, i2 string) string

func MinUInt

func MinUInt(i1, i2 uint) uint

func MinUInt64

func MinUInt64(i1, i2 uint64) uint64

func TernaryInt

func TernaryInt(condition bool, resTrue int, resFalse int) int

TernaryString acts like a "? :" C-style ternary operator for ints

func TernaryString

func TernaryString(condition bool, resTrue string, resFalse string) string

TernaryString acts like a "? :" C-style ternary operator for strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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