{"id":15653883,"url":"https://github.com/ybubnov/go-uuid","last_synced_at":"2025-07-14T18:16:23.448Z","repository":{"id":15297660,"uuid":"77851734","full_name":"ybubnov/go-uuid","owner":"ybubnov","description":"A wrapper for Linux kernel UUID v4 generator.","archived":false,"fork":false,"pushed_at":"2022-02-06T11:18:53.000Z","size":8,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T07:08:27.035Z","etag":null,"topics":["go","uuid"],"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/ybubnov.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":"2017-01-02T17:57:30.000Z","updated_at":"2022-11-05T12:26:22.000Z","dependencies_parsed_at":"2022-07-22T00:47:01.656Z","dependency_job_id":null,"html_url":"https://github.com/ybubnov/go-uuid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2Fgo-uuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2Fgo-uuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2Fgo-uuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ybubnov%2Fgo-uuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ybubnov","download_url":"https://codeload.github.com/ybubnov/go-uuid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790213,"owners_count":21644182,"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","uuid"],"created_at":"2024-10-03T12:47:39.423Z","updated_at":"2025-04-30T22:22:20.282Z","avatar_url":"https://github.com/ybubnov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-uuid - A wrapper for Linux kernel UUID v4 generator.\n\n[![Build Status][BuildStatus]](https://travis-ci.org/ybubnov/go-uuid)\n[![Documentation][Documentation]](https://godoc.org/github.com/ybubnov/go-uuid)\n\nThis UUID library is an yet another attempt to reimplement the wheel, but\ninstead of outstanding algorithm it wraps the Linux kernel implementation\nof UUID v4 generator.\n\n\n## Installation\n\nThe latest version can be installed using ```go``` tool:\n```sh\ngo get github.com/ybubnov/go-uuid\n```\n\n\n## Usage\n\n### Trivial configuration\nThe usage is pretty straightforward. Here is the most trivial example:\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/ybubnov/go-uuid\"\n)\n\nfunc main() {\n    u1 := uuid.New()\n    fmt.Printf(\"uuid v4: %s\\n\", u1)\n}\n```\n\n### Advanced configuration\nAnother example shows an advanced configuration of generator. It defines the\n```128``` buffered UUIDs, and 16 workers used to produce them.\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/ybubnov/go-uuid\"\n)\n\nfunc main() {\n    src := uuid.Kernel{MaxIdle: 128, MaxProcs: 16}\n    defer src.Stop() // Terminate source when time comes.\n\n    u1, err := src.Next()\n    if err != nil {\n        fmt.Printf(\"failed to generate uuid: %s\\n\", err)\n    }\n\n    fmt.Printf(\"uuid v4: %s\\n\", u1)\n}\n```\n\n\n## Licence\n\nThe UUID library is distributed under MIT license, therefore you are free to do\nwith code whatever you want. See the [LICENSE](LICENSE) file for full license text.\n\n[BuildStatus]:   https://travis-ci.org/ybubnov/go-uuid.svg?branch=master\n[Documentation]: https://godoc.org/github.com/ybubnov/go-uuid?status.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybubnov%2Fgo-uuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fybubnov%2Fgo-uuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fybubnov%2Fgo-uuid/lists"}