golang/go

golang/go has 2,117,172 source lines of code out of 2,986,933 total lines across 9,413 files, counted from the master ref at commit a0305823a92b by the OctoCounts tokei engine on 2026-10-23. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

As of 2026-10-23 (commit a0305823a92b), golang/go contains 2,986,933 total lines: 2,117,172 code, 634,323 comments, 235,438 blank, across 9,413 files in 27 languages (top: Go 91.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

As of 2026-10-23 (commit a0305823a92b), golang/go contains 2,986,933 total lines: 2,117,172 code, 634,323 comments, 235,438 blank, across 9,413 files in 27 languages (top: Go 91.1%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving golang/go to commit a0305823a92b, 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.

LanguageFilesLinesCodeCommentsBlanks
Go705225079401929725376305201910
GNU Style Assembly5781735171408511871413952
Snakemake28215362016801368
JSON34866685450121
YAML6470486335384329
C8866495137732780
HTML61503137123109
Shell1214151073218124
Perl913841049172163
C Header221289796353140
JavaScript67255845982
Python2767482142143

Top language (Go 91.1%). Generated at .

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does golang/go have?

golang/go has 2,986,933 total lines, including 2,117,172 code lines, 634,323 comment lines, and 235,438 blank lines.

How was the golang/go line count measured?

OctoCounts resolved the public GitHub repository to commit a0305823a92b, 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 a0305823a92b on 2026-10-23T07:46:55.813895010+00:00.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for golang/go on this page — 2,117,172 code lines across 12 languages, counted by tokei.