snowflake

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 6 Imported by: 0

README

snowflake

A snowflake ID generator based on instagram and twitter's snowflake concept

Install

go get github.com/jchenry/snowflake

Usage

import "github.com/jchenry/snowflake"

func main(){
    snowflake.Next()
}

Contributing

PRs accepted.

License

MIT © Colin Henry

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Next

func Next() int64

Next returns the next logical snowflake

Types

This section is empty.

Jump to

Keyboard shortcuts

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