ulid

package
v0.0.0-...-1e0f2b1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(id string) bool

IsValid returns true if the given string is [ULID](https://github.com/ulid/spec) compliant.

func New

func New() string

New returns a new [ULID](https://github.com/ulid/spec) with the current Unix milliseconds timestamp and rand.Reader as the entropy source.

It may panic, because it uses ulid.MustNew under the hood.

Types

This section is empty.

Jump to

Keyboard shortcuts

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