package uuid

import "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid"

Index

Types

type UUID

type UUID [16]byte

A UUID representation compliant with specification in RFC4122 document.

func New

func New() (UUID, error)

New returns a new UUID using the RFC4122 algorithm.

func Parse

func Parse(s string) (UUID, error)

Parse parses a string formatted as "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" or "{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}" into a UUID.

func (UUID) String

func (u UUID) String() string

String returns the UUID in "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" format.

Source Files

doc.go uuid.go

Version
v1.11.1 (latest)
Published
Apr 7, 2025
Platform
js/wasm
Imports
4 packages
Last checked
13 hours ago

Tools for package owners.