common

package module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Unlicense Imports: 3 Imported by: 1

README

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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