uuid

package
v0.0.3-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Nil = UUID(uuid.Nil)

Nil is a UUID zero value.

Functions

This section is empty.

Types

type UUID

type UUID uuid.UUID

UUID is an alias for a google uuid.

func New

func New() UUID

New returns a new UUID.

func Parse

func Parse(s string) (UUID, error)

Parse parses a string as UUID.

func (UUID) IsNil

func (u UUID) IsNil() bool

IsNil checks whether a uuid is nil or not.

func (UUID) String

func (u UUID) String() string

String returns a string containing the underlying uuid.

Jump to

Keyboard shortcuts

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