{"id":21428938,"url":"https://github.com/notcoffee418/goscriptoperations","last_synced_at":"2026-01-03T05:47:16.991Z","repository":{"id":256855139,"uuid":"856631145","full_name":"NotCoffee418/goscriptoperations","owner":"NotCoffee418","description":"Library to set up CLI with various operations","archived":false,"fork":false,"pushed_at":"2024-09-13T00:42:47.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T08:16:17.214Z","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/NotCoffee418.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":"2024-09-12T23:16:34.000Z","updated_at":"2024-09-13T00:42:42.000Z","dependencies_parsed_at":"2024-09-14T01:31:13.064Z","dependency_job_id":null,"html_url":"https://github.com/NotCoffee418/goscriptoperations","commit_stats":null,"previous_names":["notcoffee418/go-script-operations"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCoffee418%2Fgoscriptoperations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCoffee418%2Fgoscriptoperations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCoffee418%2Fgoscriptoperations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NotCoffee418%2Fgoscriptoperations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NotCoffee418","download_url":"https://codeload.github.com/NotCoffee418/goscriptoperations/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243940062,"owners_count":20372044,"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":"2024-11-22T22:15:17.831Z","updated_at":"2026-01-03T05:47:16.948Z","avatar_url":"https://github.com/NotCoffee418.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go User Input Utility\n\nLibrary for settign up CLI with multiple operations in a structured way.\n\n## Features\n\n- Boolean questions (yes/no)\n- String input\n- Integer input\n- Float input\n- Multiple choice questions\n\n## Usage\n\nImport the package in your Go project:\n\n```go\nimport \"github.com/NotCoffee418/goscriptoperations\"\n\nfunc main() {\n\t// Register any operations\n\tgoscriptoperations.RegisterOperation(goscriptoperations.Operation{\n\t\tIndex:       1, // Not literal, just asc sorting order\n\t\tDescription: \"Example Operation\",\n\t\tFunction:    someFunction,\n\t})\n\n\t// Start listening for user input and execute operations as prompted\n\tgoscriptoperations.StartListening()\n}\n```\n\n```\n# Output\nAvailable Operations:\n0. Exit the program\n1. Example Operation\n\nEnter operation number: 1\n\nExecuting operation 1\n\nExample Operation Completed!\n```\n\n## UtilityFunctions\n\n- `PoseBooleanQuestion`: Ask a yes/no question\n- `PoseStringQuestion`: Ask for a string input\n- `PoseIntQuestion`: Ask for an integer input\n- `PoseFloatQuestion`: Ask for a float input\n- `PoseChoiceQuestion`: Present a list of choices\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotcoffee418%2Fgoscriptoperations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotcoffee418%2Fgoscriptoperations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotcoffee418%2Fgoscriptoperations/lists"}