uuidv1

package
v0.0.0-...-d0d07a5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

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

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t time.Time) uuid.UUID

New creates a UUID using a given time.

func Now

func Now() uuid.UUID

Now creates a UUID using the now time.

Example
package main

import (
	"4d63.com/uuid/uuidv1"
)

func main() {
	_ = uuidv1.Now()
	// Returns a UUID. e.g. 08827178-0ad4-11e7-b5df-b3f54921aa61
}
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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