{"id":16768105,"url":"https://github.com/bouk/exhaustive-enum","last_synced_at":"2025-03-16T13:22:34.471Z","repository":{"id":140486396,"uuid":"140692842","full_name":"bouk/exhaustive-enum","owner":"bouk","description":"Exhaustive-enum is an exhaustive enum checker for Go. It can be used to make sure you don't miss any cases when switching over an enumeration.","archived":false,"fork":false,"pushed_at":"2018-07-12T09:38:12.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T01:11:24.538Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bouk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-07-12T09:38:02.000Z","updated_at":"2020-06-04T18:59:56.000Z","dependencies_parsed_at":"2023-03-12T16:30:29.466Z","dependency_job_id":null,"html_url":"https://github.com/bouk/exhaustive-enum","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fexhaustive-enum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fexhaustive-enum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fexhaustive-enum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bouk%2Fexhaustive-enum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bouk","download_url":"https://codeload.github.com/bouk/exhaustive-enum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243872795,"owners_count":20361550,"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-10-13T06:10:46.546Z","updated_at":"2025-03-16T13:22:34.442Z","avatar_url":"https://github.com/bouk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exhaustive-enum\n\nExhaustive-enum is an exhaustive enum checker for Go. It can be used to make sure you don't miss any cases when switching over an enumeration.\n\n## Method\n\nFind switch statements. For each:\n\n* Find type of expression being switched over.\n* Verify if the type is an enum:\n  1. `exhaustive-enum` annotation.\n  2. Type has to be a value type (not struct/interface).\n  3. Find all exported values in the package of the type definition.\n* Verify that all the enum cases are in the switch, or that there's a default case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Fexhaustive-enum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbouk%2Fexhaustive-enum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbouk%2Fexhaustive-enum/lists"}