id

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package id generates unique random strings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() string

New returns a new random string

func Random

func Random(n int) string

Random generates a random string made from bytes of size n.

If n < 1 or significantly large, it is set to reasonable bounds. It uses `crypto/rand` but falls back to `math/rand` on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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