goutils

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: MIT Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

goutils

Utils for Golang Programing

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandASCIIBytes

func RandASCIIBytes(n int) []byte

RandASCIIBytes - A helper function create and fill a slice of length n with characters from a-zA-Z0-9_-. It panics if there are any problems getting random bytes.

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes - generate random string using bytes

func RandStringBytesMask

func RandStringBytesMask(n int) string

RandStringBytesMask - generate random string using masking

func RandStringBytesMaskImpr

func RandStringBytesMaskImpr(n int) string

RandStringBytesMaskImpr - generate random string using masking improved

func RandStringBytesMaskImprSrc

func RandStringBytesMaskImprSrc(n int) string

RandStringBytesMaskImprSrc - generate random string using masking with source

func RandStringBytesRmndr

func RandStringBytesRmndr(n int) string

RandStringBytesRmndr - generate random string using Remainder

func RandStringRunes

func RandStringRunes(n int) string

RandStringRunes - generate random string using random int

func RandomString

func RandomString(len int) string

RandomString - Generate a random string of A-Z chars with len = l

Types

This section is empty.

Jump to

Keyboard shortcuts

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