random

package
v0.750.6 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultChars is the default character set used for generating random strings.
	DefaultChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
)

Variables

This section is empty.

Functions

func String

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

String generates a random string of length n, using the characters in the charset string if provided, or using the default charset if not.

Types

This section is empty.

Jump to

Keyboard shortcuts

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