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 RFC 4122 document.

func New

func New() UUID

New returns a new uuid using RFC 4122 algorithm.

func Parse

func Parse(uuidStr string) UUID

Parse parses a string formatted as "003020100-0504-0706-0809-0a0b0c0d0e0f" or "{03020100-0504-0706-0809-0a0b0c0d0e0f}" into a UUID.

func (UUID) String

func (u UUID) String() string

String returns an unparsed version of the generated UUID sequence.

Source Files

uuid.go

Version
v0.3.0
Published
Sep 10, 2020
Platform
js/wasm
Imports
4 packages
Last checked
6 hours ago

Tools for package owners.