{"id":13400363,"url":"https://github.com/dominikh/go-tools","last_synced_at":"2025-05-12T20:48:05.878Z","repository":{"id":37443159,"uuid":"79954708","full_name":"dominikh/go-tools","owner":"dominikh","description":"Staticcheck - The advanced Go linter","archived":false,"fork":false,"pushed_at":"2025-04-08T19:51:30.000Z","size":4914,"stargazers_count":6405,"open_issues_count":574,"forks_count":386,"subscribers_count":78,"default_branch":"master","last_synced_at":"2025-05-05T16:06:43.053Z","etag":null,"topics":["linter","linters","sponsor","static-analysis","staticcheck"],"latest_commit_sha":null,"homepage":"https://staticcheck.dev","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/dominikh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"patreon":"dominikh","github":"dominikh"}},"created_at":"2017-01-24T21:11:01.000Z","updated_at":"2025-05-04T07:46:44.000Z","dependencies_parsed_at":"2024-05-20T19:28:54.258Z","dependency_job_id":"a1ac21ed-d2dd-4689-8796-60bddc28d80a","html_url":"https://github.com/dominikh/go-tools","commit_stats":{"total_commits":2067,"total_committers":75,"mean_commits":27.56,"dds":0.05950653120464444,"last_synced_commit":"cdd14abaf8eddb869706f0eb52df2a6c82d95b40"},"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominikh%2Fgo-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominikh%2Fgo-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominikh%2Fgo-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominikh%2Fgo-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominikh","download_url":"https://codeload.github.com/dominikh/go-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253819714,"owners_count":21969414,"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":["linter","linters","sponsor","static-analysis","staticcheck"],"created_at":"2024-07-30T19:00:51.166Z","updated_at":"2025-05-12T20:48:05.858Z","avatar_url":"https://github.com/dominikh.png","language":"Go","funding_links":["https://patreon.com/dominikh","https://github.com/sponsors/dominikh"],"categories":["Go","Misc","开源类库","Open source library","\u003ca id=\"8c5a692b5d26527ef346687e047c5c21\"\u003e\u003c/a\u003e收集","More Collections","Code Analysis"],"sub_categories":["代码分析","Code Analysis","Routers"],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003ch1\u003e\u003cimg alt=\"Staticcheck logo\" src=\"/images/logo.svg\" height=\"300\" /\u003e\u003cbr /\u003e\n\t\tThe advanced Go linter\n\t\u003c/h1\u003e\n\u003c/div\u003e\n\nStaticcheck is a state of the art linter for the [Go programming\nlanguage](https://go.dev/). Using static analysis, it finds bugs and performance issues,\noffers simplifications, and enforces style rules.\n\n**Financial support by [private and corporate sponsors](https://staticcheck.dev/sponsors) guarantees the tool's continued development.\nPlease [become a sponsor](https://github.com/users/dominikh/sponsorship) if you or your company rely on Staticcheck.**\n\n\n## Documentation\n\nYou can find extensive documentation on Staticcheck on [its website](https://staticcheck.dev/docs/).\n\n## Installation\n\n### Releases\n\nIt is recommended that you run released versions of the tools.\nThese releases can be found as git tags (e.g. `2022.1`).\n\nThe easiest way of installing a release is by using `go install`, for example `go install honnef.co/go/tools/cmd/staticcheck@2022.1`.\nAlternatively, we also offer [prebuilt binaries](https://github.com/dominikh/go-tools/releases).\n\nYou can find more information about installation and releases in the [documentation](https://staticcheck.dev/docs/getting-started/).\n\n### Master\n\nYou can also run the master branch instead of a release. Note that\nwhile the master branch is usually stable, it may still contain new\nchecks or backwards incompatible changes that break your build. By\nusing the master branch you agree to become a beta tester.\n\n## Tools\n\nAll of the following tools can be found in the cmd/ directory. Each\ntool is accompanied by its own README, describing it in more detail.\n\n| Tool                                               | Description                                                             |\n|----------------------------------------------------|-------------------------------------------------------------------------|\n| [staticcheck](cmd/staticcheck/)                    | Go static analysis, detecting bugs, performance issues, and much more. |\n| [structlayout](cmd/structlayout/)                  | Displays the layout (field sizes and padding) of structs.               |\n| [structlayout-optimize](cmd/structlayout-optimize) | Reorders struct fields to minimize the amount of padding.               |\n| [structlayout-pretty](cmd/structlayout-pretty)     | Formats the output of structlayout with ASCII art.                      |\n\n## Libraries\n\nIn addition to the aforementioned tools, this repository contains the\nlibraries necessary to implement these tools.\n\nUnless otherwise noted, none of these libraries have stable APIs.\nTheir main purpose is to aid the implementation of the tools.\nYou'll have to expect semiregular backwards-incompatible changes if you decide to use these libraries.\n\n## System requirements\n\nStaticcheck can be compiled and run with the latest release of Go. It can analyze code targeting any version of Go upto\nthe latest release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominikh%2Fgo-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominikh%2Fgo-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominikh%2Fgo-tools/lists"}