28 lines
304 B
Markdown
28 lines
304 B
Markdown
|
# 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
|