Go to file
kayos@tcp.direct 57029ed818
#justcommonthingz
2022-02-08 04:21:57 -08:00
entropy #justcommonthingz 2022-02-08 04:21:57 -08:00
hash #justcommonthingz 2022-02-08 04:21:57 -08:00
linux #justcommonthingz 2022-02-08 04:21:57 -08:00
squish #justcommonthingz 2022-02-08 04:21:57 -08:00
.gitignore Add: squish 2022-02-04 00:04:22 -08:00
LICENSE Make godoc happy.. harder 2022-01-01 23:48:31 -08:00
README.md #justcommonthingz 2022-02-08 04:21:57 -08:00
entropy_test.go Make godoc happy 2022-01-01 23:44:05 -08:00
go.mod init 2022-01-01 13:39:27 -08:00
go.sum init 2022-01-01 13:39:27 -08:00
range.go init 2022-01-01 13:39:27 -08:00
util.go #justcommonthingz 2022-02-08 04:21:57 -08:00

common

Welcome to things. Here are some of the aforementioned:

base

`import "git.tcp.direct/kayos/common"`

Usage

func Abs

func Abs(n int) int

Abs will give you the positive version of a negative integer, quickly.

func Fprint

func Fprint(w io.Writer, s string)

Fprint is fmt.Fprint with error handling.

func OneInA

func OneInA(million int) bool

func RNG

func RNG(n int) int

RNG is a Random Number Generator

func RandSleepMS

func RandSleepMS(n int)

RandSleepMS sleeps for a random period of time with a maximum of n milliseconds.

func RandStr

func RandStr(size int) string

RandStr generates a random alphanumeric string with a max length of size.

func RangeIterate

func RangeIterate(ips interface{}) chan *ipa.IP