{"id":13763903,"url":"https://github.com/agext/uuid","last_synced_at":"2025-05-10T17:31:14.465Z","repository":{"id":57489853,"uuid":"50969823","full_name":"agext/uuid","owner":"agext","description":"Generate, encode, and decode UUIDs v1 with fast or cryptographic-quality random node identifier.","archived":false,"fork":false,"pushed_at":"2020-03-12T22:02:03.000Z","size":19,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-16T23:32:24.599Z","etag":null,"topics":["awesome-go","cryptographic-random-uuid","guid","manipulating-uuids","uuid","uuid-generator","uuid1"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agext.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":"2016-02-03T03:02:51.000Z","updated_at":"2023-12-14T00:22:21.000Z","dependencies_parsed_at":"2022-08-29T19:31:33.511Z","dependency_job_id":null,"html_url":"https://github.com/agext/uuid","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agext%2Fuuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agext%2Fuuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agext%2Fuuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agext%2Fuuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agext","download_url":"https://codeload.github.com/agext/uuid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253453234,"owners_count":21911064,"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":["awesome-go","cryptographic-random-uuid","guid","manipulating-uuids","uuid","uuid-generator","uuid1"],"created_at":"2024-08-03T15:01:01.435Z","updated_at":"2025-05-10T17:31:09.456Z","avatar_url":"https://github.com/agext.png","language":"Go","readme":"# A Go package for generating and manipulating UUIDs\n\n[![Release](https://img.shields.io/github/release/agext/uuid.svg?style=flat)](https://github.com/agext/uuid/releases/latest)\n[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/agext/uuid) \n[![Build Status](https://travis-ci.org/agext/uuid.svg?branch=master\u0026style=flat)](https://travis-ci.org/agext/uuid)\n[![Coverage Status](https://coveralls.io/repos/github/agext/uuid/badge.svg?style=flat)](https://coveralls.io/github/agext/uuid)\n[![Go Report Card](https://goreportcard.com/badge/github.com/agext/uuid?style=flat)](https://goreportcard.com/report/github.com/agext/uuid)\n\n\nGenerate, encode, and decode UUIDs v1, as defined in [RFC 4122](http://www.ietf.org/rfc/rfc4122.txt), in [Go](http://golang.org).\n\n## Project Status\n\nv1.1.0 Stable: Guaranteed no breaking changes to the API in future v1.x releases. Probably safe to use in production, though provided on \"AS IS\" basis.\n\nThis package is being actively maintained. If you encounter any problems or have any suggestions for improvement, please [open an issue](https://github.com/agext/uuid/issues). Pull requests are welcome.\n\n## Overview\n\nPackage uuid implements generation and manipulation of UUIDs (v1 defined in RFC 4122).\n\nVersion 1 UUIDs are time-based and include a node identifier that can be a MAC address or a random 48-bit value.\n\nThis package uses the random approach for the node identifier, setting both the 'multicast' and 'local' bits to make sure the value cannot be confused with a real IEEE 802 address (see section 4.5 of RFC 4122). The initial node identifier is a cryptographic-quality random 46-bit value. The first 30 bits can be set and retrieved with the `SetNodeId` and `NodeId` functions and method, so that they can be used as a hard-coded instance id. The remaining 16 bits are reserved for increasing the randomness of the UUIDs and to avoid collisions on clock sequence rollovers.\n\nThe basic generator `New` increments the clock sequence on every call and when the counter rolls over the last 16 bits of the node identifier are regenerated using a PRNG seeded at init()-time with the initial node identifier. This approach sacrifices cryptographic quality for speed and for avoiding depletion of the OS entropy pool (yes, it can and does happen).\n\nThe `NewCrypto` generator replaces the clock sequence and last 16 bits of the node identifier on each call with cryptographic-quality random values.\n\n## Installation\n\n```\ngo get github.com/agext/uuid\n```\n\n## License\n\nPackage uuid is released under the Apache 2.0 license. See the [LICENSE](LICENSE) file for details.\n","funding_links":[],"categories":["UUID","Miscellaneous","雜項","Utility","\u003cspan id=\"其他-miscellaneous\"\u003e其他 Miscellaneous\u003c/span\u003e","杂项","其他"],"sub_categories":["HTTP Clients","Utility/Miscellaneous","Fail injection","高級控制台界面","实用程序/Miscellaneous","Advanced Console UIs","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面","交流","查询语"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagext%2Fuuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagext%2Fuuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagext%2Fuuid/lists"}