id

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Checksum

func Checksum(a string) string

Checksum creates a unique CRC32 checksum from a string

func Fingerprint

func Fingerprint(a string) string

Fingerprint creates a unique ID (MD5) from a string

func RandomToken

func RandomToken(prefix string) (string, error)

RandomToken generates a random token similar to a to a RFC 4122 UID

func ShortUUID

func ShortUUID() (string, error)

ShortUUID returns a short (6 bytes) UID

func SimpleUUID

func SimpleUUID() (string, error)

SimpleUUID generates a random UUID according to RFC 4122, without any dashes

func UUID

func UUID() (string, error)

UUID generates a random UUID according to RFC 4122

Types

This section is empty.

Jump to

Keyboard shortcuts

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