{"id":36454543,"url":"https://github.com/gostructs/gostructs","last_synced_at":"2026-01-15T02:09:05.466Z","repository":{"id":328384399,"uuid":"1115237984","full_name":"gostructs/gostructs","owner":"gostructs","description":"Go static analyzer: find unused and duplicate structs","archived":false,"fork":false,"pushed_at":"2025-12-17T18:19:12.000Z","size":1649,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-12T00:48:32.380Z","etag":null,"topics":["code-quality","dead-code","go-struct","golang","linter","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gostructs.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-12-12T14:46:19.000Z","updated_at":"2025-12-17T18:10:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gostructs/gostructs","commit_stats":null,"previous_names":["afify/gostructs","gostructs/gostructs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/gostructs/gostructs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gostructs%2Fgostructs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gostructs%2Fgostructs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gostructs%2Fgostructs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gostructs%2Fgostructs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gostructs","download_url":"https://codeload.github.com/gostructs/gostructs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gostructs%2Fgostructs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"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":["code-quality","dead-code","go-struct","golang","linter","static-analysis"],"created_at":"2026-01-11T23:01:38.895Z","updated_at":"2026-01-15T02:09:05.461Z","avatar_url":"https://github.com/gostructs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gostructs\n\nAnalyze struct declarations in Go code.\n\n## Installation\n\n```\ngo install github.com/gostructs/gostructs@latest\n```\n\n## Usage\n\n```\ngostructs ./...          # run all analyses\ngostructs -u ./...       # find unused structs\ngostructs -d ./...       # find duplicate structs\ngostructs ./pkg/...      # analyze specific package\n```\n\n## Flags\n\n| Flag | Description |\n|------|-------------|\n| `-u`, `-unused` | Find unused structs |\n| `-d`, `-duplicate` | Find duplicate/similar structs |\n| `-t`, `-tags` | Validate struct tags |\n| `-j`, `-json` | Output in JSON format |\n| `-min-score` | Minimum similarity score (0.0-1.0) for `-d` (default: 0.5) |\n| `-min-fields` | Minimum fields to consider for `-d` (default: 2) |\n| `-v`, `-version` | Print version |\n\nNote: Generated files (`*.pb.go`, `*_gen.go`, `*_generated.go`) are automatically skipped.\n\n## Output\n\n```\npath/to/file.go:15:6: struct Foo is unused\n```\n\nExit codes: `0` success, `1` issues found, `2` error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgostructs%2Fgostructs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgostructs%2Fgostructs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgostructs%2Fgostructs/lists"}