diff --git a/README.md b/README.md index 98d2a45..899fcd9 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # snowid -![workflow badge](https://github.com/guoyk93/snowid/actions/workflows/go.yml/badge.svg) [![Go Reference](https://pkg.go.dev/badge/github.com/guoyk93/snowid.svg)](https://pkg.go.dev/github.com/guoyk93/snowid) +[![workflow badge](https://github.com/guoyk93/snowid/actions/workflows/go.yml/badge.svg)](https://github.com/guoyk93/snowid/actions) +[![Go Reference](https://pkg.go.dev/badge/github.com/guoyk93/snowid.svg)](https://pkg.go.dev/github.com/guoyk93/snowid) A concurrent-safe lock-free implementation of snowflake algorithm in Golang ## Install -`go get -u github.com/guoyk93/snowflake` +`go get -u github.com/guoyk93/snowid` ## Usage @@ -15,7 +16,7 @@ A concurrent-safe lock-free implementation of snowflake algorithm in Golang id, _ := strconv.ParseUint(os.Getenv("WORKER_ID"), 10, 64) // create an instance (a sonyflake like instance) -s := snowflake.New(snowflake.Options{ +s := snowid.New(snowflake.Options{ Epoch: time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC), ID: id, Grain: time.Millisecond*10,