# golang/go SLOC report

> As of 2026-10-10 (commit dfe2e7bfb454), golang/go contains 2,976,652 total lines: 2,109,443 code, 632,383 comments, 234,826 blank, across 9,387 files in 27 languages (top: Go 91.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

golang/go has 2,109,443 source lines of code out of 2,976,652 total lines across 9,387 files, counted from the master ref at commit dfe2e7bfb454 by the OctoCounts tokei engine on 2026-10-10. 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/go to commit dfe2e7bfb454, 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 very large codebase by counted code lines. Code represents 70.9% of all lines, comments represent 21.2%, and the repository averages 225 code lines per file. Go accounts for 91.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 7,035 | 2,498,516 | 1,922,617 | 374,512 | 201,387 |
| GNU Style Assembly | 577 | 173,020 | 140,451 | 18,670 | 13,899 |
| Snakemake | 28 | 21,395 | 20,038 | 0 | 1,357 |
| JSON | 34 | 8,656 | 8,535 | 0 | 121 |
| YAML | 61 | 6,944 | 6,254 | 365 | 325 |
| C | 88 | 6,649 | 5,137 | 732 | 780 |
| HTML | 6 | 1,503 | 1,371 | 23 | 109 |
| Shell | 12 | 1,415 | 1,073 | 218 | 124 |
| Perl | 9 | 1,384 | 1,049 | 172 | 163 |
| C Header | 22 | 1,289 | 796 | 353 | 140 |
| JavaScript | 6 | 725 | 584 | 59 | 82 |
| Python | 2 | 767 | 482 | 142 | 143 |

Top language (Go 91.1%). Generated at 2026-10-10T01:11:38.719381346+00:00. Canonical report: https://octocounts.com/github/golang/go

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/golang/go/commit/dfe2e7bfb454f71784ee1aeeac44063fd582f9f3?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/go have?

golang/go has 2,976,652 total lines, including 2,109,443 code lines, 632,383 comment lines, and 234,826 blank lines.

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

OctoCounts resolved the public GitHub repository to commit dfe2e7bfb454, 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/go?

This OctoCounts report was generated from master at commit dfe2e7bfb454 on 2026-10-10T01:11:38.719381346+00:00.

## Similar repository reports

- [sourcegraph/sourcegraph-public-snapshot](https://octocounts.com/github/sourcegraph/sourcegraph-public-snapshot) — Go, 1,949,533 code lines
- [milvus-io/milvus](https://octocounts.com/github/milvus-io/milvus) — Go, 1,744,351 code lines
- [coze-dev/coze-studio](https://octocounts.com/github/coze-dev/coze-studio) — Go, 1,533,916 code lines
- [apache/plc4x](https://octocounts.com/github/apache/plc4x) — Go, 1,512,321 code lines
- [coder/coder](https://octocounts.com/github/coder/coder) — Go, 1,501,875 code lines
- [cockroachdb/cockroach](https://octocounts.com/github/cockroachdb/cockroach) — Go, 3,085,053 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)
