{"id":50740175,"url":"https://github.com/n8tbyte/buuid","last_synced_at":"2026-06-10T16:32:11.907Z","repository":{"id":294735517,"uuid":"987900055","full_name":"n8tbyte/buuid","owner":"n8tbyte","description":"A lightweight Go package for generating random strings, numbers, and unique IDs quickly and easily.","archived":false,"fork":false,"pushed_at":"2025-05-22T17:21:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-27T21:35:15.728Z","etag":null,"topics":[],"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/n8tbyte.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-21T18:53:14.000Z","updated_at":"2025-05-22T17:21:12.000Z","dependencies_parsed_at":"2025-06-08T14:03:53.343Z","dependency_job_id":null,"html_url":"https://github.com/n8tbyte/buuid","commit_stats":null,"previous_names":["naruepanart/buuid","n8tbyte/buuid"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/n8tbyte/buuid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n8tbyte%2Fbuuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n8tbyte%2Fbuuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n8tbyte%2Fbuuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n8tbyte%2Fbuuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n8tbyte","download_url":"https://codeload.github.com/n8tbyte/buuid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n8tbyte%2Fbuuid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34161283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":[],"created_at":"2026-06-10T16:32:06.703Z","updated_at":"2026-06-10T16:32:11.900Z","avatar_url":"https://github.com/n8tbyte.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buuid - Simple Random Generator Package\n\n![Go](https://img.shields.io/badge/Go-1.16+-blue.svg)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)\n\nA lightweight Go package for generating various types of random values with simple APIs.\n\n## Features\n\n- Generate random strings with custom character sets\n- Create random integers within a range\n- Generate random floating-point numbers\n- Produce unique IDs with timestamp components\n- Thread-safe operations\n\n## Installation\n\n```bash\ngo get github.com/naruepanart/buuid\n```\n\n## Usage\n\n### Random Strings\n\n```go\nimport \"github.com/naruepanart/buuid\"\n\n// Available character set flags:\n// buuid.R_NUM   - Numbers only (0-9)\n// buuid.R_UPPER - Uppercase letters only (A-Z)\n// buuid.R_LOWER - Lowercase letters only (a-z)\n// buuid.R_All   - All characters (0-9, A-Z, a-z)\n\n// Generate 10-character random string with numbers and lowercase letters\nrandomStr := buuid.String(buuid.R_NUM|buuid.R_LOWER, 10)\n\n// Generate 6-character random string with all character types (default length)\nrandomStr := buuid.String(buuid.R_All)\n```\n\n### Random Numbers\n\n```go\n// Random integer between 0-100 (default)\nnum := buuid.Int()\n\n// Random integer between 0-50\nnum := buuid.Int(50)\n\n// Random integer between 10-20\nnum := buuid.Int(10, 20)\n```\n\n### Random Floating-Point Numbers\n\n```go\n// Random float with 2 decimal places, between 0.0-100.0\nf := buuid.Float64(2)\n\n// Random float with 3 decimal places, between 0.0-50.0\nf := buuid.Float64(3, 50)\n\n// Random float with 4 decimal places, between 10.0-20.0\nf := buuid.Float64(4, 10, 20)\n```\n\n### Unique IDs\n\n```go\n// Numeric ID combining timestamp and random component\nid := buuid.NewID() // e.g., 1651234567890123456\n\n// Hexadecimal string version of NewID()\nhexID := buuid.NewStringID() // e.g., \"16f3a5b7c8d9e0f1\"\n\n// Formatted timestamp ID with random suffix\nseriesID := buuid.NewSeriesID() // e.g., \"2023052312453000000123456\"\n```\n\n## Performance\n\nThe package uses crypto/rand for secure random generation by default, with fallback to time-based randomness if crypto/rand fails.\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn8tbyte%2Fbuuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn8tbyte%2Fbuuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn8tbyte%2Fbuuid/lists"}