{"id":21682325,"url":"https://github.com/beevik/guid","last_synced_at":"2025-07-02T07:04:20.852Z","repository":{"id":8800860,"uuid":"10495048","full_name":"beevik/guid","owner":"beevik","description":"generate and parse uuids in go","archived":false,"fork":false,"pushed_at":"2023-05-28T05:28:47.000Z","size":11,"stargazers_count":23,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T06:52:57.748Z","etag":null,"topics":["go","guid","uuid"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beevik.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":"2013-06-05T04:36:23.000Z","updated_at":"2024-11-06T13:57:00.000Z","dependencies_parsed_at":"2024-06-18T17:11:01.868Z","dependency_job_id":null,"html_url":"https://github.com/beevik/guid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/beevik/guid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fguid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fguid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fguid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fguid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beevik","download_url":"https://codeload.github.com/beevik/guid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beevik%2Fguid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263091026,"owners_count":23412343,"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","guid","uuid"],"created_at":"2024-11-25T15:35:32.038Z","updated_at":"2025-07-02T07:04:20.829Z","avatar_url":"https://github.com/beevik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/beevik/guid?status.svg)](https://godoc.org/github.com/beevik/guid)\n\nguid\n====\n\nThe guid package implements a 16-byte guid/uuid type. It supports parsing\nof guid strings, validation of guids, and random generation of guids\naccording to [RFC-4122](http://www.ietf.org/rfc/rfc4122.txt).\n\nSee http://godoc.org/github.com/beevik/guid for the godoc-formatted API\ndocumentation.\n\n### Example: Parsing a guid\n\n```go\ng, err := guid.ParseString(\"67a23ff3-20be-4420-9274-d16f2833d595\")\n```\n\n### Example: Generating a random guid\n\n```go\ng := guid.New()\n```\n\n### Example: Validating a guid string\n\n```go\ns0 := \"67a23ff3-20be-4420-9274-d16f2833d595\"\ns1 := \"67a23ff3-20be-4420-9274\"\nfmt.Println(\"s0 a guid?  \", guid.IsGuid(s0))\nfmt.Println(\"s0 a guid?  \", guid.IsGuid(s1))\n```\n\nOutput:\n```\ns0 a guid?  true\ns1 a guid?  false\n```\n\n### Example: Converting a guid to a string\n\n```go\nfor i := 0; i \u003c 4; i++ {\n\tg := guid.New()\n\tfmt.Println(\"guid: %s  GUID: %s\\n\", g.String(), g.StringUpper())\n}\n```\n\nOutput:\n```\nguid: 9a5bb29c-cdcd-4b1b-a039-b88d1271ab4c  GUID: 9A5BB29C-CDCD-4B1B-A039-B88D1271AB4C\nguid: efeeee74-aea6-4fa9-8037-8d3a3f883d3f  GUID: EFEEEE74-AEA6-4FA9-8037-8D3A3F883D3F\nguid: 773730b7-7b5d-4ef0-80ed-f52617d5b688  GUID: 773730B7-7B5D-4EF0-80ED-F52617D5B688\nguid: 256f523f-e65e-4451-9381-1d561abbc645  GUID: 256F523F-E65E-4451-9381-1D561ABBC645\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevik%2Fguid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeevik%2Fguid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeevik%2Fguid/lists"}