randstr

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package randstr provides basic functions for generating random bytes, string

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(n int) []byte

Bytes generates n random bytes

func String

func String(n int, letters ...string) string

String generates a random string using only letters provided in the letter's parameter if user omit letters parameters, this function will use defLetters instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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