IdWorker in golang.
HTTP Interface Open source project (https://github.com/gitstliu/idservice)
go-id-worker is an id creator, for generating a global unique id. The type of id is int64.
go get "github.com/gitstliu/go-id-worker"
import (
"github.com/gitstliu/go-id-worker"
)
currWoker := &idworker.IdWorker{}
currWoker.InitIdWorker(1000, 1)
newId , newIdErr:= currWoker.NexiId()
......