{"id":24033756,"url":"https://github.com/daanv2/go-uuid","last_synced_at":"2026-02-14T02:06:34.911Z","repository":{"id":219613296,"uuid":"749466712","full_name":"DaanV2/go-uuid","owner":"DaanV2","description":"A library that provides a way to handle, and generate UUIDs. Complies with the RFC 4122 standard.","archived":false,"fork":false,"pushed_at":"2024-06-17T17:54:51.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T18:54:32.926Z","etag":null,"topics":["go","golang","rfc-4122","uuid"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/DaanV2/go-uuid","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/DaanV2.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-28T17:07:20.000Z","updated_at":"2024-06-17T17:54:55.000Z","dependencies_parsed_at":"2024-01-28T18:30:27.619Z","dependency_job_id":"8b7bc5b5-7e51-4564-a5bb-ee6db99ec84b","html_url":"https://github.com/DaanV2/go-uuid","commit_stats":null,"previous_names":["daanv2/go-uuid"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-uuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-uuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-uuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaanV2%2Fgo-uuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaanV2","download_url":"https://codeload.github.com/DaanV2/go-uuid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240797685,"owners_count":19859235,"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","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":["go","golang","rfc-4122","uuid"],"created_at":"2025-01-08T18:54:37.924Z","updated_at":"2026-02-14T02:06:34.907Z","avatar_url":"https://github.com/DaanV2.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go UUID\n\n[![Pipeline](https://github.com/DaanV2/go-uuid/actions/workflows/pipeline.yaml/badge.svg)](https://github.com/DaanV2/go-uuid/actions/workflows/pipeline.yaml)\n\nA library that provides a way to handle, and generate UUIDs. Complies with RFC 4122 and RFC 9562 standards. Based on the code I wrote for [.dotnet - DaanV2.UUID.Net](https://github.com/DaanV2/DaanV2.UUID.Net)\n\n\n```go\nimport \"github.com/DaanV2/go-uuid\"\n\nu := uuid.New()\nu := uuid.NewString()\n\n//Specific version\nu := uuid.V4.New()\nu := uuid.V4.NewString()\n\n// Hash-based UUIDs\nu := uuid.V5.New([]byte(\"Some data\"))\nu := uuid.V3.New([]byte(\"Some data\"))\n\n// Time-based UUIDs (RFC 9562)\nu, err := uuid.V6.New() // Reordered timestamp UUID (better for databases)\nu := uuid.V7.New()      // Unix timestamp-based UUID (time-ordered)\n\n// Custom/vendor-specific UUID (RFC 9562)\nu := uuid.V8.New()                    // Random\nu := uuid.V8.From([]byte(\"custom\"))   // From custom data\n\n// Batch generation\nu := uuid.V4.NewBatch(10)\n\n```\n\n## Supported UUID Versions\n\n- **V1**: Timestamp and MAC address-based UUID (RFC 4122)\n- **V3**: MD5 hash-based UUID (RFC 4122)\n- **V4**: Random UUID (RFC 4122)\n- **V5**: SHA-1 hash-based UUID (RFC 4122)\n- **V6**: Reordered timestamp UUID - better database indexing than V1 (RFC 9562)\n- **V7**: Unix timestamp-based UUID with random data - time-ordered (RFC 9562)\n- **V8**: Custom/vendor-specific UUID format (RFC 9562)\n\n## Install\n\n```bash\ngo get github.com/DaanV2/go-uuid\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaanv2%2Fgo-uuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaanv2%2Fgo-uuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaanv2%2Fgo-uuid/lists"}