random

package
v0.0.0-...-0c1a86e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package random provides functions for generating random length strings and byte slices. Code originated from Stack Overflow question (https://stackoverflow.com/q/22892120) and from this answer: https://stackoverflow.com/a/31832326

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(length int) []byte

Bytes returns a random byte slice of specified length

func String

func String(length int) string

String returns a random string of specified length

Types

This section is empty.

Jump to

Keyboard shortcuts

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