uuid

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package uuid provides a Go adapter for the npm "uuid" package.

Index

Constants

View Source
const Nil = "00000000-0000-0000-0000-000000000000"

Nil is the nil UUID (all zeros).

Variables

This section is empty.

Functions

func Parse

func Parse(s string) (string, error)

Parse parses a UUID string and returns it normalized (lowercase).

func V1

func V1() string

V1 generates a UUID v1-like string (timestamp-based, simplified).

func V4

func V4() string

V4 generates a random UUID v4 string.

func Validate

func Validate(s string) bool

Validate checks if a string is a valid UUID format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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