// eg : today is 20190228;
// use NextID will return int64(1902284193284128769)
/*
| year-month-day| time | sequence | srvID or MachineID|
| | 27bit | 12bit | 4bit |
*/
sf = NewYMDSnowflake(1)
id := sf.NextID()
-
Notifications
You must be signed in to change notification settings - Fork 0
mangotree2/ymdsnowflake
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|