uuid: 4d63.com/uuid/uuidv1 Index | Examples | Files

package uuidv1

import "4d63.com/uuid/uuidv1"

Package uuidv1 exports functions for creating version 1 UUIDs, based on the current or a fixed time.

Index

Examples

Package Files

doc.go timestamp.go timeuuid.go

func New Uses

func New(t time.Time) uuid.UUID

New creates a UUID using a given time.

func Now Uses

func Now() uuid.UUID

Now creates a UUID using the now time.

Code:

_ = uuidv1.Now()
// Returns a UUID. e.g. 08827178-0ad4-11e7-b5df-b3f54921aa61

Package uuidv1 imports 3 packages (graph). Updated 2017-11-19. Refresh now. Tools for package owners.