{"id":13413519,"url":"https://github.com/aofei/sandid","last_synced_at":"2025-08-01T17:37:54.338Z","repository":{"id":44364927,"uuid":"136999994","full_name":"aofei/sandid","owner":"aofei","description":"Every grain of sand on Earth has its own ID.","archived":false,"fork":false,"pushed_at":"2025-05-17T14:32:33.000Z","size":52,"stargazers_count":47,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T15:31:26.956Z","etag":null,"topics":["generator","go","id","sandid","unique"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/aofei/sandid","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/aofei.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}},"created_at":"2018-06-12T01:24:14.000Z","updated_at":"2025-05-17T14:29:13.000Z","dependencies_parsed_at":"2022-09-26T17:41:23.740Z","dependency_job_id":null,"html_url":"https://github.com/aofei/sandid","commit_stats":null,"previous_names":["sheng/sandid"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/aofei/sandid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fsandid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fsandid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fsandid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fsandid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aofei","download_url":"https://codeload.github.com/aofei/sandid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aofei%2Fsandid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268268947,"owners_count":24223160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["generator","go","id","sandid","unique"],"created_at":"2024-07-30T20:01:42.237Z","updated_at":"2025-08-01T17:37:54.330Z","avatar_url":"https://github.com/aofei.png","language":"Go","readme":"# SandID\n\n[![Test](https://github.com/aofei/sandid/actions/workflows/test.yaml/badge.svg)](https://github.com/aofei/sandid/actions/workflows/test.yaml)\n[![codecov](https://codecov.io/gh/aofei/sandid/branch/master/graph/badge.svg)](https://codecov.io/gh/aofei/sandid)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aofei/sandid)](https://goreportcard.com/report/github.com/aofei/sandid)\n[![Go Reference](https://pkg.go.dev/badge/github.com/aofei/sandid.svg)](https://pkg.go.dev/github.com/aofei/sandid)\n\nEvery grain of sand on Earth has its own ID.\n\nThe algorithm used to generate the [`sandid.SandID`](https://pkg.go.dev/github.com/aofei/sandid#SandID) mainly come\nfrom the [UUID](https://tools.ietf.org/html/rfc4122) version 1. Some\n[adjustments](https://www.percona.com/blog/2014/12/19/store-uuid-optimized-way/) were made to enhance the efficiency of\ndatabase insertion.\n\n## Features\n\n- Extremely easy to use\n- Fixed length\n  - 16 bytes\n  - 22 characters\n  - 128-bit\n- Huge capacity\n  - Up to 2e128\n- URL safe\n  - `^[A-Za-z0-9-_]{22}$`\n- Encoding friendly\n  - Implemented [`encoding.TextMarshaler`](https://pkg.go.dev/encoding#TextMarshaler) and [`encoding.TextUnmarshaler`](https://pkg.go.dev/encoding#TextUnmarshaler)\n  - Implemented [`encoding.BinaryMarshaler`](https://pkg.go.dev/encoding#BinaryMarshaler) and [`encoding.BinaryUnmarshaler`](https://pkg.go.dev/encoding#BinaryUnmarshaler)\n  - Implemented [`json.Marshaler`](https://pkg.go.dev/encoding/json#Marshaler) and [`json.Unmarshaler`](https://pkg.go.dev/encoding/json#Unmarshaler)\n- SQL friendly\n  - [`sandid.NullSandID`](https://pkg.go.dev/github.com/aofei/sandid#NullSandID) support\n  - Implemented [`sql.Scanner`](https://pkg.go.dev/database/sql#Scanner) and [`driver.Valuer`](https://pkg.go.dev/database/sql/driver#Valuer)\n- Zero third-party dependencies\n\n## Installation\n\nTo use this project programmatically, `go get` it:\n\n```bash\ngo get github.com/aofei/sandid\n```\n\n## Community\n\nIf you have any questions or ideas about this project, feel free to discuss them\n[here](https://github.com/aofei/sandid/discussions).\n\n## Contributing\n\nIf you would like to contribute to this project, please submit issues [here](https://github.com/aofei/sandid/issues)\nor pull requests [here](https://github.com/aofei/sandid/pulls).\n\nWhen submitting a pull request, please make sure its commit messages adhere to\n[Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/).\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","funding_links":[],"categories":["Miscellaneous","Microsoft Office","杂项","其他杂项","Uncategorized","其他"],"sub_categories":["Uncategorized","未分类的","暂未分类这些库被放在这里是因为其他类别似乎都不适合。","Strings","暂未分类","交流","Advanced Console UIs"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fsandid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faofei%2Fsandid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faofei%2Fsandid/lists"}