{"id":13771501,"url":"https://github.com/haya14busa/gosum","last_synced_at":"2025-04-30T13:16:37.480Z","repository":{"id":57494183,"uuid":"75546916","full_name":"haya14busa/gosum","owner":"haya14busa","description":"Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling","archived":false,"fork":false,"pushed_at":"2017-11-05T01:30:57.000Z","size":20,"stargazers_count":44,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-25T08:01:42.012Z","etag":null,"topics":["go","golang"],"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/haya14busa.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":"2016-12-04T15:44:59.000Z","updated_at":"2023-08-28T11:21:03.000Z","dependencies_parsed_at":"2022-09-02T06:12:24.694Z","dependency_job_id":null,"html_url":"https://github.com/haya14busa/gosum","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/haya14busa%2Fgosum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fgosum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fgosum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haya14busa%2Fgosum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haya14busa","download_url":"https://codeload.github.com/haya14busa/gosum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242656037,"owners_count":20164431,"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"],"created_at":"2024-08-03T17:00:52.154Z","updated_at":"2025-03-09T06:33:04.361Z","avatar_url":"https://github.com/haya14busa.png","language":"Go","funding_links":[],"categories":["Linters"],"sub_categories":["Bugs"],"readme":"## Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling  \n\n[![GoDoc](https://godoc.org/github.com/haya14busa/gosum?status.svg)](https://godoc.org/github.com/haya14busa/gosum)\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n## gosumcheck\n\n### Installation \n\n```\n$ go get -u github.com/haya14busa/gosum/cmd/gosumcheck\n```\n\n### Example\n\n```\n$ gosumcheck go/ast/...\n/usr/lib/go/src/go/ast/commentmap.go:233:3: uncovered cases for ast.Node type switch:\n        - *ast.ChanType\n        - *ast.Ident\n        - *ast.SelectorExpr\n        - *ast.TypeAssertExpr\n        - *ast.CompositeLit\n        - *ast.FieldList\n        - *ast.Package\n        - *ast.ArrayType\n        - *ast.ParenExpr\n        - *ast.BinaryExpr\n        - *ast.UnaryExpr\n        - *ast.BadExpr\n        - *ast.FuncLit\n        - *ast.CommentGroup\n        - *ast.IndexExpr\n        - *ast.MapType\n        - *ast.StructType\n        - *ast.BasicLit\n        - *ast.Ellipsis\n        - *ast.InterfaceType\n        - *ast.Comment\n        - *ast.FuncType\n        - *ast.SliceExpr\n        - *ast.StarExpr\n        - *ast.CallExpr\n        - *ast.KeyValueExpr\n/usr/lib/go/src/go/ast/filter.go:158:2: uncovered cases for ast.Spec type switch:\n        - *ast.ImportSpec\n/usr/lib/go/src/go/ast/filter.go:209:2: uncovered cases for ast.Decl type switch:\n        - *ast.BadDecl\n```\n\nSee `gosumcheck -h` and [Sum/Union/Variant Type in Go and Static Check Tool of switch-case handling](https://medium.com/@haya14busa/sum-union-variant-type-in-go-and-static-check-tool-of-switch-case-handling-3bfc61618b1e) for detail.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fgosum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaya14busa%2Fgosum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaya14busa%2Fgosum/lists"}