randomstring

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 2 Imported by: 0

README ¶

📦 Package randomstring

Source Path: pkg/random_string

🔢 Constants

const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"

🚀 Functions

GenerateRandomString

GenerateRandomString generates a random string with the given length using the characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789". If the length is less than 1, it will return an empty string. If the length is greater than the number of characters, it will return an error.

func GenerateRandomString(length int) (string, error)

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func GenerateRandomString ¶

func GenerateRandomString(length int) (string, error)

GenerateRandomString generates a random string with the given length using the characters: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789". If the length is less than 1, it will return an empty string. If the length is greater than the number of characters, it will return an error.

Types ¶

This section is empty.

Jump to

Keyboard shortcuts

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