Skip to content

arshsingh/go-flax-id

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Go implementation of Flax ID: https://github.com/ergeon/python-flax-id

Usage

package main

import (
    "github.com/arshsingh/go-flax-id"
)

func main() {
    id := flaxid.New()  // 4e3tRv_8hyBIuXj5
    ...
}

Get an ID for a specified timestamp instead of the current moment:

timestamp := time.Unix(1424300000, 0)
id := flaxid.ForTimestamp(timestamp)  // -EkPZk2dAFoHm_t4

About

Distributed unique ID generation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages