{"id":40896587,"url":"https://github.com/anothermemory/id","last_synced_at":"2026-01-22T02:24:00.952Z","repository":{"id":57552810,"uuid":"116165608","full_name":"anothermemory/id","owner":"anothermemory","description":"Simple ID generator library which can be mocked for testing","archived":false,"fork":false,"pushed_at":"2018-01-20T15:39:39.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T18:09:06.591Z","etag":null,"topics":["go","golang","id","identifier","ids","mock","uuid","uuid-generator","uuid4"],"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/anothermemory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-03T17:47:55.000Z","updated_at":"2018-01-04T00:14:39.000Z","dependencies_parsed_at":"2022-09-26T18:50:53.519Z","dependency_job_id":null,"html_url":"https://github.com/anothermemory/id","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/anothermemory/id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anothermemory%2Fid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anothermemory%2Fid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anothermemory%2Fid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anothermemory%2Fid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anothermemory","download_url":"https://codeload.github.com/anothermemory/id/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anothermemory%2Fid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28651385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["go","golang","id","identifier","ids","mock","uuid","uuid-generator","uuid4"],"created_at":"2026-01-22T02:24:00.891Z","updated_at":"2026-01-22T02:24:00.947Z","avatar_url":"https://github.com/anothermemory.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Another Memory ID\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/anothermemory/id)](https://goreportcard.com/report/github.com/anothermemory/id)\n[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/anothermemory/id)\n[![Coveralls github](https://img.shields.io/coveralls/github/anothermemory/id.svg?style=flat-square)](https://coveralls.io/github/anothermemory/id)\n[![Release](https://img.shields.io/github/release/anothermemory/id.svg?style=flat-square)](https://github.com/anothermemory/id/releases/latest)\n[![license](https://img.shields.io/github/license/anothermemory/id.svg?style=flat-square)](LICENSE.md)\n[![Codacy grade](https://img.shields.io/codacy/grade/b37d4ed0bbab42a29a05d81829ca1dbb.svg?style=flat-square)](https://www.codacy.com/app/anothermemory/id)\n\nThis library contains interface and set of implementations for generating different identifiers. There are multiple\nimplementations available. For production usage identifiers must be mostly unique. For testing purposes it's often much \neasier to use mocked generator so it will generate the same id each time.\n\nTable of Contents\n=================\n\n* [Another Memory ID](#another-memory-id)\n  * [Getting Started](#getting-started)\n    * [Prerequisites](#prerequisites)\n    * [Installing](#installing)\n    * [See it in action](#see-it-in-action)\n      * [Mocked ID for testing](#mocked-id-for-testing)\n      * [Real ID for production](#real-id-for-production)\n  * [Built With](#built-with)\n  * [Contributing](#contributing)\n  * [Versioning](#versioning)\n  * [Authors](#authors)\n  * [License](#license)\n\n## Getting Started\n\n### Prerequisites\n\nThe project is tested with go 1.9 but probably will work with earlier versions.\n\n### Installing\n\nSimple go get it\n\n```bash\ngo get github.com/anothermemory/id\n```\n\n### See it in action\n\n#### Mocked ID for testing\n\n```go\npackage id_test\n\nimport (\n    \"fmt\"\n    \"github.com/anothermemory/id\"\n)\n\nfunc Example() {\n    g := id.NewMock(\"123\")\n\n    fmt.Println(g.Generate())\n    fmt.Println(g.Generate())\n\n    // Output:\n    // 123\n    // 123\n}\n```\n\n#### Real ID for production\n\n```go\npackage id_test\n\nimport (\n    \"fmt\"\n    \"github.com/anothermemory/id\"\n)\n\nfunc Example() {\n    g := id.NewUUID()\n\n    fmt.Println(g.Generate())\n    fmt.Println(g.Generate())\n\n    // Output:\n    // 2118679c-d6f6-4848-8084-aaab790fd1ae\n    // 394d79cb-803f-4807-a9bc-00d84d5f9ad3\n}\n```\n\n## Built With\n\n* [dep](https://github.com/golang/dep) - The dependency management tool for Go\n\n## Contributing\n\nPlease read [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for details on our code of conduct, and [CONTRIBUTING.md](CONTRIBUTING.md) for details on the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/anothermemory/id/tags). \n\n## Authors\n\n* **Vyacheslav Enis**\n\nSee also the list of [contributors](https://github.com/anothermemory/id/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanothermemory%2Fid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanothermemory%2Fid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanothermemory%2Fid/lists"}