• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H12-Oct-2020-10490

_benchmarks/H12-Oct-2020-321279

arg/H12-Oct-2020-4946

callgraph/H12-Oct-2020-1,562912

cmd/H12-Oct-2020-1,4931,282

code/H12-Oct-2020-483394

config/H12-Oct-2020-257208

deprecated/H12-Oct-2020-120112

dist/H12-Oct-2020-8164

doc/articles/H03-May-2022-

edit/H12-Oct-2020-6857

facts/H12-Oct-2020-495418

functions/H12-Oct-2020-159123

gcsizes/H12-Oct-2020-167145

go/types/typeutil/H12-Oct-2020-1,077715

images/screenshots/H12-Oct-2020-

internal/H12-Oct-2020-4,3353,444

ir/H12-Oct-2020-14,3229,348

lint/H12-Oct-2020-2,6632,072

loader/H12-Oct-2020-211160

pattern/H12-Oct-2020-2,2991,783

printf/H12-Oct-2020-335254

report/H12-Oct-2020-185160

simple/H12-Oct-2020-4,0803,420

staticcheck/H12-Oct-2020-9,1367,505

structlayout/H12-Oct-2020-2319

stylecheck/H12-Oct-2020-2,0661,632

unused/H12-Oct-2020-3,4632,610

version/H12-Oct-2020-9777

LICENSEH A D12-Oct-20201 KiB2117

LICENSE-THIRD-PARTYH A D12-Oct-202014.5 KiB285226

README.mdH A D12-Oct-20202.9 KiB6442

go.modH A D12-Oct-2020272 1310

go.sumH A D12-Oct-20204.1 KiB4443

staticcheck.confH A D12-Oct-202085 21

README.md

1# honnef.co/go/tools
2
3`honnef.co/go/tools/...` is a collection of tools and libraries for
4working with Go code, including linters and static analysis, most
5prominently staticcheck.
6
7**These tools are financially supported by [private and corporate sponsors](http://staticcheck.io/sponsors) to ensure its continued development.
8Please consider [becoming a sponsor](https://github.com/users/dominikh/sponsorship) if you or your company relies on the tools.**
9
10
11## Documentation
12
13You can find extensive documentation on these tools, in particular staticcheck, on [staticcheck.io](https://staticcheck.io/docs/).
14
15
16## Installation
17
18### Releases
19
20It is recommended that you run released versions of the tools. These
21releases can be found as git tags (e.g. `2019.1`) as well as prebuilt
22binaries in the [releases tab](https://github.com/dominikh/go-tools/releases).
23
24The easiest way of using the releases from source is to use a Go
25package manager such as Godep or Go modules. Alternatively you can use
26a combination of `git clone -b` and `go get` to check out the
27appropriate tag and download its dependencies.
28
29
30### Master
31
32You can also run the master branch instead of a release. Note that
33while the master branch is usually stable, it may still contain new
34checks or backwards incompatible changes that break your build. By
35using the master branch you agree to become a beta tester.
36
37## Tools
38
39All of the following tools can be found in the cmd/ directory. Each
40tool is accompanied by its own README, describing it in more detail.
41
42| Tool                                               | Description                                                             |
43|----------------------------------------------------|-------------------------------------------------------------------------|
44| [keyify](cmd/keyify/)                              | Transforms an unkeyed struct literal into a keyed one.                  |
45| [rdeps](cmd/rdeps/)                                | Find all reverse dependencies of a set of packages                      |
46| [staticcheck](cmd/staticcheck/)                    | Go static analysis, detecting bugs, performance issues, and much more. |
47| [structlayout](cmd/structlayout/)                  | Displays the layout (field sizes and padding) of structs.               |
48| [structlayout-optimize](cmd/structlayout-optimize) | Reorders struct fields to minimize the amount of padding.               |
49| [structlayout-pretty](cmd/structlayout-pretty)     | Formats the output of structlayout with ASCII art.                      |
50
51## Libraries
52
53In addition to the aforementioned tools, this repository contains the
54libraries necessary to implement these tools.
55
56Unless otherwise noted, none of these libraries have stable APIs.
57Their main purpose is to aid the implementation of the tools. If you
58decide to use these libraries, please vendor them and expect regular
59backwards-incompatible changes.
60
61## System requirements
62
63We support the last two versions of Go.
64