{"id":26685429,"url":"https://github.com/goapt/gencode","last_synced_at":"2025-03-26T10:16:03.673Z","repository":{"id":57583397,"uuid":"175352556","full_name":"goapt/gencode","owner":"goapt","description":"Generate unique code","archived":false,"fork":false,"pushed_at":"2019-11-26T03:58:50.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-21T03:15:13.354Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/goapt.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":"2019-03-13T05:31:11.000Z","updated_at":"2024-06-21T03:15:13.355Z","dependencies_parsed_at":"2022-08-30T21:12:47.804Z","dependency_job_id":null,"html_url":"https://github.com/goapt/gencode","commit_stats":null,"previous_names":["ilibs/gencode"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goapt%2Fgencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goapt%2Fgencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goapt%2Fgencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/goapt%2Fgencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/goapt","download_url":"https://codeload.github.com/goapt/gencode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245632400,"owners_count":20647194,"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":[],"created_at":"2025-03-26T10:16:03.038Z","updated_at":"2025-03-26T10:16:03.664Z","avatar_url":"https://github.com/goapt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gencode\nGenerate unique code\n\n同一秒内生成10W个不重复的，无规则的16位纯数字编码，并且当一秒内生成超过10W个编码，程序会阻塞1秒之后再次生产编码\n\n\n```\nimport \"github.com/goapt/gencode\"\n\nfunc main(){\n    manager := gencode.New(\"\", \"20180919\",false)\n    code := manager.Get()\n    fmt.Println(code)\n    c, err := manager.Verify(code)\n    fmt.Println(c, err)\t\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoapt%2Fgencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoapt%2Fgencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoapt%2Fgencode/lists"}