Uniqueid

The Uniqueid registry offers functions to generate unique identifiers, such as UUIDs, which are essential for creating distinct and traceable entities in your applications.

You can easily import all the functions from the uniqueid registry by including the following import statement in your code

import "github.com/go-sprout/sprout/registry/uniqueid"

uuidv4

Uuidv4 generates a new random UUID (Universally Unique Identifier) version 4.

Signature

Uuidv4() string
{{ uuidv4 }} // Output: "3f0c463e-53f5-4f05-a2ec-3c083aa8f937"

Last updated

Change request #24: reflect safe functions feature and new signatures