You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long. 909db53116 init 6 months ago init 6 months ago
go.mod init 6 months ago
go.sum init 6 months ago
range.go init 6 months ago
util.go init 6 months ago


-- import ""

stuff I use a lot.

func Abs

func Abs(n int) int

func CompareChecksums

func CompareChecksums(a []byte, b []byte) bool

func Fprint

func Fprint(w io.Writer, s string)

Fprint is fmt.Fprint with error handling.

func RNG

func RNG(n int) int

Random Number Generator (uses a combo of crypto/rand and math/rand for better performance)

func RangeIterate

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

IP Address iteration

func SnoozeMS

func SnoozeMS(n int)

Random sleep, max of n seconds.