u

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndINT

func AndINT(x, y int) int

AndINT - Logical AND for two inputs of type int.

func NormalizeRange

func NormalizeRange(f float64, max int, limitMin bool) int

NormalizeRange - Normalizing range.

func OrINT

func OrINT(x, y int) int

OrINT - Logical OR for two inputs of type int.

func RandomInt

func RandomInt(min, max int) int

RandomInt - Get random integer.

func ReadImage

func ReadImage(fname string) (image.Image, error)

ReadImage - wrapper function for reading png/jpeg/jpg or bmp images

It can determine type of image and use proper decoder for it

func Round

func Round(v float64) float64

Round Round float64 to 0 decimal places

func RoundPlaces

func RoundPlaces(v float64, places int) float64

RoundPlaces Round float64 to N decimal places

func SuffleSlice

func SuffleSlice(data []interface{}) []interface{}

SuffleSlice - Shuffle a slice in random way.

func XorINT

func XorINT(x, y int) int

XorINT - Logical XOR for two inputs of type int.

Types

This section is empty.

Jump to

Keyboard shortcuts

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