xrand

package module
v0.0.0-...-4ac08e6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: BSD-3-Clause Imports: 8 Imported by: 1

README

xrand

xrand provides helpers for generating useful random values.

Install

go get oss.terrastruct.com/xrand

Usage

// A random 5-letter string with no underscores
randomString := xrand.String(5, []rune{rune('_')})

Documentation

Overview

Package xrand provides helpers for generating useful random values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(n int) string

func Bool

func Bool() bool

func String

func String(n int, exclude []rune) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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