{"id":15687839,"url":"https://github.com/orisano/usage","last_synced_at":"2025-03-30T11:42:24.689Z","repository":{"id":57494490,"uuid":"146734531","full_name":"orisano/usage","owner":"orisano","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-08T06:15:18.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T05:34:31.633Z","etag":null,"topics":["cli","flag","golang","library"],"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/orisano.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":"2018-08-30T10:34:16.000Z","updated_at":"2022-01-08T06:15:20.000Z","dependencies_parsed_at":"2022-09-02T19:51:01.939Z","dependency_job_id":null,"html_url":"https://github.com/orisano/usage","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fusage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fusage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fusage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fusage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/usage/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314125,"owners_count":20757457,"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":["cli","flag","golang","library"],"created_at":"2024-10-03T17:51:19.497Z","updated_at":"2025-03-30T11:42:24.662Z","avatar_url":"https://github.com/orisano.png","language":"Go","readme":"# usage\n## Installation\n```\ngo get github.com/orisano/usage\n```\n\n## How to use\n```go\npackage main\n\nimport (\n    \"flag\"\n    \"fmt\"\n    \n    \"github.com/orisano/usage\"\n)\n\nfunc main() {\n    flag.Usage = usage.Ordered(\"n\", \"N\")\n    n := flag.Int(\"n\", 0, \"number n\")\n    N := flag.Int(\"N\", 1, \"number N\")\n    flag.Parse()\n    \n    fmt.Println(*n, *N)\n}\n```\n\n## Author\nNao Yonashiro (@orisano)\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fusage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fusage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fusage/lists"}