uuid

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

package uuid provides a set of utilities for working with UUIDs in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UUID

type UUID struct {
	// contains filtered or unexported fields
}

UUID represents a universally unique identifier.

func ParseUUID

func ParseUUID(s string) (u *UUID, err error)

ParseUUID parses a UUID string.

func V1

func V1() (u *UUID, err error)

V1 generates a version 1 UUID.

func V2

func V2() (u *UUID, err error)

V2 generates a version 2 UUID.

func V3

func V3(namespace string, name string) (u *UUID, err error)

V3 generates a version 3 UUID.

func V4

func V4() (u *UUID, err error)

V4 generates a version 4 UUID.

func (*UUID) Bytes

func (u *UUID) Bytes() []byte

Bytes returns the bytes of the UUID.

func (*UUID) String

func (u *UUID) String() string

String returns the string representation of the UUID.

Jump to

Keyboard shortcuts

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