# golang/tools SLOC report

> As of 2026-09-17 (commit b8a78cfad030), golang/tools contains 378,471 total lines: 267,434 code, 72,846 comments, 38,191 blank, across 1,929 files in 19 languages (top: Go 98.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

golang/tools has 267,434 source lines of code out of 378,471 total lines across 1,929 files, counted from the b8a78cfad0304b579cbe066aa2c8fae831162502 ref at commit b8a78cfad030 by the OctoCounts tokei engine on 2026-09-17. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving golang/tools to commit b8a78cfad030, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 70.7% of all lines, comments represent 19.2%, and the repository averages 139 code lines per file. Go accounts for 98.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 1,793 | 368,197 | 262,384 | 68,989 | 36,824 |
| GNU Style Assembly | 21 | 1,994 | 1,705 | 122 | 167 |
| JavaScript | 9 | 1,933 | 1,465 | 225 | 243 |
| CSS | 6 | 1,105 | 944 | 19 | 142 |
| Templ | 5 | 444 | 372 | 11 | 61 |
| Happy | 1 | 202 | 175 | 0 | 27 |
| Prolog | 5 | 150 | 116 | 0 | 34 |
| Shell | 4 | 183 | 110 | 49 | 24 |
| JSON | 1 | 50 | 50 | 0 | 0 |
| YAML | 3 | 87 | 50 | 28 | 9 |
| BASH | 1 | 68 | 47 | 13 | 8 |
| C | 1 | 8 | 7 | 0 | 1 |

Top language (Go 98.1%). Generated at 2026-09-17T01:46:14.805000604+00:00. Canonical report: https://octocounts.com/github/golang/tools

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/golang/tools/commit/b8a78cfad0304b579cbe066aa2c8fae831162502?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does golang/tools have?

golang/tools has 378,471 total lines, including 267,434 code lines, 72,846 comment lines, and 38,191 blank lines.

### How was the golang/tools line count measured?

OctoCounts resolved the public GitHub repository to commit b8a78cfad030, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for golang/tools?

This OctoCounts report was generated from b8a78cfad0304b579cbe066aa2c8fae831162502 at commit b8a78cfad030 on 2026-09-17T01:46:14.805000604+00:00.

## Similar repository reports

- [Codeberg-org/gitea](https://octocounts.com/github/Codeberg-org/gitea) — Go, 266,516 code lines
- [Paca-AI/paca](https://octocounts.com/github/Paca-AI/paca) — Go, 269,867 code lines
- [blitzy-public-samples/tidepool-platform](https://octocounts.com/github/blitzy-public-samples/tidepool-platform) — Go, 261,154 code lines
- [0xJacky/nginx-ui](https://octocounts.com/github/0xJacky/nginx-ui) — Go, 245,093 code lines
- [cli/cli](https://octocounts.com/github/cli/cli) — Go, 238,069 code lines
- [tracewayapp/traceway](https://octocounts.com/github/tracewayapp/traceway) — Go, 234,338 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
