初级会员
  • 第 16070 位会员
  • gitstliu
  • 三刀流
  • 2018-02-06 18:14:35
  • Offline
  • 26 53

最近发布的主题

    暂无

最近分享的资源

    暂无

最近发布的项目

    暂无

最近的评论

  • # go-id-worker IdWorker in golang. go-id-worker is an id creator. For generating an global unique id. The type of id is int64. ## You can get it like this. ``` go get "github.com/gitstliu/go-id-worker" ``` ## And import it like this. ``` import ( "github.com/gitstliu/go-id-worker" ) ``` ## Create and use an idWorker like this. ``` currWoker := &idworker.IdWorker{} currWoker.InitIdWorker(1000, 1) newId := currWoker.NexiId() ```