{"id":25350041,"url":"https://github.com/yankeguo-deprecated/snowflake-alt","last_synced_at":"2026-04-24T16:07:04.528Z","repository":{"id":71951892,"uuid":"231423914","full_name":"yankeguo-deprecated/snowflake-alt","owner":"yankeguo-deprecated","description":"A concurrent-safe lock-free implementation of snowflake algorithm in Golang","archived":false,"fork":false,"pushed_at":"2021-06-30T14:30:14.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-19T03:45:35.126Z","etag":null,"topics":["algorithm","golang","id-generator","snowflake"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yankeguo-deprecated.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-02T16:58:02.000Z","updated_at":"2022-09-02T09:08:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"9086fb56-fb93-4d41-a061-e259f441fca6","html_url":"https://github.com/yankeguo-deprecated/snowflake-alt","commit_stats":null,"previous_names":["yankeguo-deprecated/snowflake-alt","go-guoyk/snowflake"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yankeguo-deprecated/snowflake-alt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fsnowflake-alt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fsnowflake-alt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fsnowflake-alt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fsnowflake-alt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yankeguo-deprecated","download_url":"https://codeload.github.com/yankeguo-deprecated/snowflake-alt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fsnowflake-alt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32230445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["algorithm","golang","id-generator","snowflake"],"created_at":"2025-02-14T16:59:02.665Z","updated_at":"2026-04-24T16:07:04.503Z","avatar_url":"https://github.com/yankeguo-deprecated.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# snowflake\n\nA concurrent-safe lock-free implementation of snowflake algorithm in Golang\n\n## Get\n\n`go get -u go.guoyk.net/snowflake`\n\n## Usage\n\n```go\n// assign a unique identifier\nid, _ := strconv.ParseUint(os.Getenv(\"WORKER_ID\"), 10, 64)\n\n// create a instance\ns := snowflake.New(snowflake.Options{\n  Epoch: time.Date(2020, time.January, 1, 0, 0, 0, 0, time.UTC),\n  ID: id,\n})\n\n// get a id\ns.NewID()\n\n// stop and release all related resource\ns.Stop()\n```\n\n## Performance\n\nLess than `1us/op`\n\n## Credits\n \nGuo Y.K., MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeguo-deprecated%2Fsnowflake-alt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyankeguo-deprecated%2Fsnowflake-alt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeguo-deprecated%2Fsnowflake-alt/lists"}