Categorygithub.com/terrextech/uuuid
modulepackage
1.2.0
Repository: https://github.com/terrextech/uuuid.git
Documentation: pkg.go.dev

# README

Universal Universally Unique ID


A UUID package that implements/will-implement required Marshalling/Unmarshalling interfaces for various types.

Based on github.com/gofrs/uuid.

Why?

It has been a source of great pain and inconvenience for my lazy existence, that the UUIDs have to be converted again and again to different types for operations such as inserting/fetching from Databases.

Enough. Not any more.


Currently implemented Marshal/Unmarshal interfaces

  • Go-CQL

# Functions

FromBytes returns a UUID generated from the raw byte slice input.
FromBytesOrNil returns a UUID generated from the raw byte slice input.
FromString returns a UUID parsed from the input string.
FromStringOrNil returns a UUID parsed from the input string.
NewV1 returns a new v1 UUID.
NewV4 returns a new v4 UUID.
TimestampFromV1 returns the Timestamp embedded within a V1 UUID.

# Structs

UUID represents a v4 UUID.