Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New generates a cryptographically random string ID of the specified length. By default, IDs consist of mixed-case alphanumeric characters (0-9, A-Z, a-z). A single optional custom charset can be provided if you want to use different characters. The idLen parameter must be between 0 and 255 inclusive. If provided, the custom charset length must be between 1 and 255 inclusive.
func NewMulti ¶
NewMulti generates multiple cryptographically random string IDs of the specified length and quantity. By default, IDs consist of mixed-case alphanumeric characters (0-9, A-Z, a-z). A single optional custom charset can be provided if you want to use different characters. The idLen parameter must be between 0 and 255 inclusive.
Types ¶
This section is empty.