Go to file
kayos@tcp.direct 737458198e
Improve coverage
2022-02-12 19:27:04 -08:00
entropy Improve coverage 2022-02-12 19:27:04 -08:00
hash Testing: add more test cases 2022-02-12 18:14:54 -08:00
linux Testing: add more test cases 2022-02-12 18:14:54 -08:00
network Testing: add more test cases 2022-02-12 18:14:54 -08:00
squish Improve coverage 2022-02-12 19:27:04 -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
common_test.go Improve coverage 2022-02-12 19:27:04 -08:00
go.mod init 2022-01-01 13:39:27 -08:00
go.sum init 2022-01-01 13:39:27 -08:00
util.go Testing: add more test cases 2022-02-12 18:14:54 -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