Back to Lo

Core Randomstring

docs/data/core-randomstring.md

1.53.0144 B
Original Source

Returns a random string of the specified length from the given charset.

go
str := lo.RandomString(5, lo.LettersCharset)
// e.g., "eIGbt"