<div align="center">
<h1><img alt="Staticcheck logo" src="/images/logo.svg" height="300" /><br />
The advanced Go linter
</h1>
</div>
Staticcheck is a state of the art linter for the [Go programming
language](https://go.dev/). Using static analysis, it finds bugs and performance issues,
offers simplifications, and enforces style rules.
**Financial support by [private and corporate sponsors](https://staticcheck.dev/sponsors) guarantees the tool's continued development.
Please [become a sponsor](https://github.com/users/dominikh/sponsorship) if you or your company rely on Staticcheck.**
## Documentation
You can find extensive documentation on Staticcheck on [its website](https://staticcheck.dev/docs/).
## Installation
### Releases
It is recommended that you run released versions of the tools.
These releases can be found as git tags (e.g. `2022.1`).
The easiest way of installing a release is by using `go install`, for example `go install honnef.co/go/tools/cmd/staticcheck@2022.1`.
Alternatively, we also offer [prebuilt binaries](https://github.com/dominikh/go-tools/releases).
You can find more information about installation and releases in the [documentation](https://staticcheck.dev/docs/getting-started/).
### Master
You can also run the master branch instead of a release. Note that
while the master branch is usually stable, it may still contain new
checks or backwards incompatible changes that break your build. By
using the master branch you agree to become a beta tester.
## Tools
All of the following tools can be found in the cmd/ directory. Each
tool is accompanied by its own README, describing it in more detail.
| Tool | Description |
|----------------------------------------------------|-------------------------------------------------------------------------|
| [staticcheck](cmd/staticcheck/) | Go static analysis, detecting bugs, performance issues, and much more. |
| [structlayout](cmd/structlayout/) | Displays the layout (field sizes and padding) of structs. |
| [structlayout-optimize](cmd/structlayout-optimize) | Reorders struct fields to minimize the amount of padding. |
| [structlayout-pretty](cmd/structlayout-pretty) | Formats the output of structlayout with ASCII art. |
## Libraries
In addition to the aforementioned tools, this repository contains the
libraries necessary to implement these tools.
Unless otherwise noted, none of these libraries have stable APIs.
Their main purpose is to aid the implementation of the tools.
You'll have to expect semiregular backwards-incompatible changes if you decide to use these libraries.
## System requirements
Staticcheck can be compiled and run with the latest release of Go. It can analyze code targeting any version of Go upto
the latest release.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
高级 Go linterStaticcheck 是Go 编程语言最先进的 linter 。它使用静态分析来查找错误和性能问题、提供简化并强制执行样式规则。私人和企业赞助商的资金支持保证了该工具的持续发展。如果您或您的公司依赖 Staticcheck,请成为赞助商。文档您可以在 Staticcheck的网站上找到有关其的大量文档。安装发行建议您运行已发布的工具版本。这些版本可通过 git 标签(例如2022.1)找到。安装发行版最简单的方式是使用go install。go install honnef.co/go/tools/cmd/staticcheck@2022.1或者,我们也提供预构建的二进制文件。您可以在文档中找到有关安装和发布的更多信息。掌握您还可以运行主分支而不是发布版本。请注意,虽然主分支通常比较稳定,但它可能仍包含新的检查或向后不兼容的更改,从而破坏您的构建。使用主分支即表示您同意成为 Beta 测试员。工具以下所有工具均可在 cmd/ 目录中找到。每个工具都附有自己的 README,对其进行更详细的描述。工具 描述
资源推荐
资源详情
资源评论
收起资源包目录
Staticcheck - 高级 Go linter.zip (1098个子文件)
0001cdcefc5f03f99c21d4ef8232d8f0d8510d9c48e8105c927bc70ac02034a9 56B
00ec3673b415e2f6fc4a3f0d31413096921fbd1faa1cbabdd3637480af027a72 78B
02f183192c9bcfbb22db5afa08e5a9a84babfca022726d0121f42c68d3feecee 114B
04fca5bfcc4a67c0d97de75fd6dc13a4a3e5c2dc68e5061f7bcb7e19852efe56 552B
05eea82b6791ec62e197e6128c608c67f5393ff98e94a9c1ba1311e763778749 159B
06b3cbf8b7806ca08ce1ca466e83488ca32abb5db6b0ca4b07c54aa7be47adf3 77B
09c3a6a518c0e44fe60591523655ba4d7dcf62cb477f7e316a51e089adea74c2 88B
0a21c29e926184ebb3c293c9cea3465ef5e1fc5c1b81be7d0770d5d69ee838a3 223B
0ce7ffb3713ec9373531b2903b8f8751e280cdae2b625dcf35dc1fcd88c592bf 208B
170704499ec0c05bf39fb37f6c5604e13624c4fb531e41305b2439308e370f35 171B
1a3c741fba42577fac3c5035a3d44e5a78bcefa11f9ccc3bb2919376d984e4a2 134B
1eb6c2e8b8e0be47a019f0345b68ebfdba5f05804204e810166d1fe7c12e8556 141B
27e5f99d63fed488c4e9c3ac4a1e364f809ad894cb109aacc9bd6a85c015fdb7 102B
2bac99d4a450641e3ae239588965c64323b1ee9eb2351cc53019d430d3a59efa 384B
2c72a4a6b571446d5374dc5174fa44767bdcc8197e38c54738e50f8b58903230 82B
2f1cdb43e9c62bdb5f8777bc2cb4eee3e8fe173c4361f54833c48d06833ec8fe 288B
312c49b9d41ad52e7beaa65ab01f5416e4f4d1db78b4e0001260ac888256b609 61B
3148b044a5e00e508bfd9ac4d139e032503a590c36bd458a8291b77502d13561 101B
31ac2ece486bde345a4ac42fb989efa8835e72e82e357d5d82a313d6ba03eca2 101B
359bf5d248c22a3fc8d67de10279802663a767d4bf2d11dad3209bee13953ee0 71B
3895395d667f576d7f3891a63e4cc0157b2ec73dbe55745c1cba65f31e8cc5db 118B
3a3ef35129ccc131fc582363751397ad5723fb8ae891c31eaa5ad86ba402a27e 107B
3d78313ab191ebe8647428cd6d896208cb6dcfdd19eb87ae388315548176445a 67B
3e0e018aca3103af7824d729c88c028b8e0d60d3de223c786f46acac3e910cdb 200B
3f66b015db9a62175f277eab5f76a62397c681b7e4ed6564f452e6159d4cb454 93B
4115b01752356dd12fd6499da369daec6031f62d315aecc4afad56c97f61b904 104B
465963a68302ca54f21c75fc3f680d6a5e1065682fb05a1350ed105883436a82 92B
47857edd56b46ac9c16e788e9295d1dafb910c345899aafd618ddaa12793f4f9 140B
4dec90e6083b5e195501df63d8e1ed6813b623bef60ad8d9e0a1df1f251a58f3 400B
51390f40de42348adb99c613cd8367db404851ce3ea1a4e02ea316b5b7e915b7 342B
53da8fdd88cd66de33bbdbbf564e2b14b69d02f32102d8a96171ed4b05dbc92e 387B
56a234ae7b32577f770d5b997f037de709344d7be6fd9ca6e1f44fc8c4367f5b 75B
5baab7b6c2c18988c27aefc55f5d48c6ac583f790fb6763cda34375f9b07da40 670B
5cc91809f9225a218b9cfb3a31d5baed3c5a44b5da3a74184fa97abe3bbf178f 92B
5d9a745f26174c61e5ab0966e4821f75b71de80345be52d4b81aa1515158b735 110B
5e8383a425cf9bc34f43d60f7586184ae7a544e3ad10405ef7aca57246c2ab66 230B
60c36a14214281c0c2c31599563afec69016f469a0f25222a9500e307b159d11 36B
614ea1474d223cb45716d531aa8afac2dfd52938aeb38c64b70a351f0cf509b2 159B
6a4d6ea339df8f59816483834329cc4310816de0223bd3607b2af6c91367a59b 146B
6aa9975401e9a24c46284ea6ea1740740fc58950a021c56e1376c2e108ee3b90 77B
6ac1f5e27fbe6d979efae1abf9b2439a824b83f4b2a27508dbeb5dc95b4f9960 809B
6fa1e1e283fd220866a9e5878510db574b761fbd5a0e863e66f40fd4acbbaf07 153B
71e2fa0db72c309e630267beac45c90d37e4b8f9d2d2ed52100d1abca7b72965 378B
76d91998f39bf2e25bd361453a73968274ffe16677cf02d872222d4c799552f8 603B
78eaf491672242d08770ab22b67853f639c767f65346de39c6f3e677b1cd879d 58B
7ba6359207886a1c2c7bbe254835555e87a037ecd3af0301a11a43ec2287c487 104B
7ec87621ab148929b69125a04edd13ff104007ca0d8dff12f281753ea93ffb80 171B
8203d4ee0690ca0d0c4b907e1f1c8d6c1724c4771ec3a685b56b440f52b4282a 69B
8324b925e52410ab88b6265538881346436b67d95ad808b8f9220a84b0772ab7 315B
84e67732ffe4ba2d8fdb8cfc8690804579623dbc9c56a378ca483f088348296a 78B
87839b3497143dd5ea14963b78c011edceb40d13fe1d8cd9b894a81b5dae2200 89B
87f42498d6f57dc40c9972487f0e35d9820acbbce6cf61f3b90dabaa9cb8a8fc 88B
90a846c5b88ccf4fe765113a3580ecc90a5cf083a97f0bc4b3bb53a1f00e3fd8 91B
9437b751fb0f1f07f5dcb8c8a10d0f3d4470a77b7ec77df6be872a109184bd1b 120B
94b7dc35d595dd794b4f65cd35f94ae8fe7c7214e6da8caa69f0b841e9a099af 80B
9d603847ed1c030c81f2289ee576971cd63564cc811afb5c18d5a51db7aefa76 539B
_headers 375B
a3b8af4d027db37d44e58995ed2ab3cd9f2cb415669287e9e7ce7186534b4b1f 92B
aa520290f4868dc3c01f15d2769941654a404b87327f5dde790c99fc2c63d875 129B
ac1b69c690b399207dd7fe32f03a12d2731fa2d1704f6b15cfdc7f772b0f3187 310B
ad86b3632aca0a27fef3d6d79de5c2bcf1c21f7a6caa1260aab964edc21f3f65 200B
af10598249def731ec19ebffa3cbc464892d0e445dbefab9ccf578eae136236a 45B
afe5949d38d9171e39ad413d31abfab6bf45d066b700b4e84a232a6b3aa53085 664B
b44bceab2d84f09950aa80d8541c18e31a3d5dde6e874fd0bfe2e4ce54606db0 79B
b553c9e015253a9e3d4e202fdb2d90764151e24219f26f7510a433d30323666e 276B
b6a22c4a4f5e0cf4a291f2d6f03860631075934e4069959665d1f8097c69d0d0 110B
b95053e6ea7644faad4e0f2e5f308ca66d6a05c47bf36d0fde268fc12e09ca63 514B
ba95d1477ea1b35a949c6b469077d908b1cbcaf7fbf3ce9ef544bfeb24f877fb 108B
bb62ca358e19867f7d31400cb2a65aac1e918308212c43d10cca21feeb9c99d2 118B
c1a2c8141751527604100e865db8d0e711ce25fc5c291b7702752496ac4b2546 52B
c30ca6d4801d71144c641960df6919115149d2b6fae5f7d9b2bac2b8cd6b8d25 205B
c5f48734d853b82016955671d916daaf72da20a5f8335dddf7640fab1f5a3acb 53B
c6d06d254dee12276b9b46ef9be863a1eefc4d0673946a706ec7a164625595f0 55B
c7abb7fc60634bb8d57b5b7c225a6accf0d2eb56c88bfe5e44cdd3e0c3e29666 102B
ca92b01f6dbdcb91e335219081aa48c16893c217bf6edc020fcb78b3ebabcd1f 82B
example.conf 633B
staticcheck.conf 32B
e027a03ee012e289def51d770ead1e8a136b60989d3d1fb9388a394da2f595da 140B
e1e59b9e6718f5089e98c955c391d38c7e243495ece9598826492ab734e5171f 61B
e43aa6da655e6c326cfb1f8c9970b603411caf262af4a50980c5a5987ee696f3 117B
e48990bfca21324ab7a29098b9a4b40fbd22bd5adcfa316b4b8af460a232b638 99B
eb0ecf0066fdafbe218a736d3fc071a52408311637cc527db239f110418e8616 56B
ed6769b59df864327fba2b109f0cb965e5b8a6e5f1085e36f5635f1d65003a00 149B
dfa.el 1011B
f640eee2b04d1b52793ba88998a86702893e23d2563d017be9be90efc04a43c6 99B
f855d335a52bd8b6ed4472abb33c0eb8f67a63d84f1c27398c23689fb2720645 92B
fac160433f2d82b3c15a8c6ad3938fd85825a4f248108538938a57914e80f114 70B
fb2c5ef5801f44e5bee94b82dbb1bc787cc4b7fbdb17e5cfcc4283f2c726a99f 91B
fe6c6578776a5ce92474e943ac14979a308d4151d779fd4cfd782f7fb970165e 40B
ff2017b5c630d7225812cfa8b29b6ebad665505492db847722ba79da5d2c89eb 128B
.gitattributes 49B
.gitignore 465B
.gitmodules 103B
builder.go 96KB
ssa.go 65KB
unused.go 48KB
lift.go 48KB
runner.go 34KB
func.go 29KB
html.go 28KB
共 1098 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
徐浪老师
- 粉丝: 8288
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功