{"id":23505069,"url":"https://github.com/necmettindev/randomstring","last_synced_at":"2025-04-15T23:50:33.897Z","repository":{"id":190706202,"uuid":"683193227","full_name":"necmettindev/randomstring","owner":"necmettindev","description":"A Go package for generating random strings","archived":false,"fork":false,"pushed_at":"2023-08-26T09:44:39.000Z","size":10,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T02:51:31.595Z","etag":null,"topics":["go","golang","id-generator","random","random-generation","random-generator","random-generators","random-string","string-generator","unique-id"],"latest_commit_sha":null,"homepage":"https://necmettin.dev","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/necmettindev.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}},"created_at":"2023-08-25T20:25:50.000Z","updated_at":"2023-08-30T08:34:10.000Z","dependencies_parsed_at":"2023-10-15T17:36:38.728Z","dependency_job_id":null,"html_url":"https://github.com/necmettindev/randomstring","commit_stats":null,"previous_names":["necmettindev/randomstring"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/necmettindev%2Frandomstring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/necmettindev%2Frandomstring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/necmettindev%2Frandomstring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/necmettindev%2Frandomstring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/necmettindev","download_url":"https://codeload.github.com/necmettindev/randomstring/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173061,"owners_count":21224481,"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","golang","id-generator","random","random-generation","random-generator","random-generators","random-string","string-generator","unique-id"],"created_at":"2024-12-25T09:18:19.655Z","updated_at":"2025-04-15T23:50:33.875Z","avatar_url":"https://github.com/necmettindev.png","language":"Go","readme":"# Random String Generator\n\nThis library assists in generating random strings based on specific characteristics. You can create random strings consisting of alphanumeric characters, letters only, digits only, special characters, or even a custom character set.\n\n## Features\n\n- Generate strings with alphanumeric, letters only, digits only, or special characters.\n- Ability to disable uppercase, lowercase, or numeric characters.\n- Option to use a custom character set.\n\n## Installation\n\n```bash\ngo get -u github.com/necmettindev/randomstring\n```\n\n## Usage\n\nBelow are different scenarios demonstrating how to use the `randomstring` package:\n\n### Basic Usage\n\nGenerate a string of length 10 using the default alphanumeric characters:\n\n```go\npackage main\n\nimport (\n\"fmt\"\n\"github.com/necmettindev/randomstring\"\n)\n\nfunc main() {\n    opts := randomstring.GenerationOptions{\n        Length: 10,\n    }\n\n    result, _ := randomstring.GenerateString(opts)\n\n    fmt.Println(result)\n}\n```\n\n### Disabling Features\n\nFor instance, to generate a string containing letters only:\n\n```go\n    opts := randomstring.GenerationOptions{\n        Length: 10,\n        DisableNumeric: true,\n    }\n\n    result, _ := randomstring.GenerateString(opts)\n    fmt.Println(result)\n```\n\n### Using Special Characters\n\nGenerate a string with enabled special characters:\n\n```go\n    opts := randomstring.GenerationOptions{\n        Length: 15,\n        EnableSpecialCharacter: true,\n    }\n\n    result, _ := randomstring.GenerateString(opts)\n    fmt.Println(result)\n```\n\n### Using a Custom Character Set\n\nGenerate a string with your own custom character set:\n\n```go\n    opts := randomstring.GenerationOptions{\n        Length: 12,\n        CustomCharset: \"abcXYZ789\",\n    }\n\n    result, _ := randomstring.GenerateString(opts)\n    fmt.Println(result) // Produces a string consisting only of 'a', 'b', 'c', 'X', 'Y', 'Z', '7', '8', '9'.\n```\n\n## Contributing\n\nIf you wish to contribute to this project, please first open an issue or pick up an existing one. Then make your contribution and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecmettindev%2Frandomstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnecmettindev%2Frandomstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnecmettindev%2Frandomstring/lists"}