golang / website
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 955 files with 96,128 lines of code.
    • 14 very long files (30,345 lines of code)
    • 28 long files (19,637 lines of code)
    • 52 medium size files (17,162 lines of codeclsfd_ftr_w_mp_ins)
    • 64 small files (9,572 lines of code)
    • 797 very small files (19,412 lines of code)
31% | 20% | 17% | 9% | 20%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
html48% | 29% | 17% | 3% | 1%
css70% | 9% | 11% | 8% | <1%
go7% | 14% | 19% | 15% | 42%
js43% | 11% | 17% | 20% | 6%
yaml0% | 0% | 32% | 0% | 67%
java0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
proto0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
cjs0% | 0% | 0% | 0% | 100%
b0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
_content/doc52% | 24% | 11% | 5% | 6%
_content/css100% | 0% | 0% | 0% | 0%
internal/redirect88% | 0% | 7% | 0% | 4%
_content/talks10% | 2% | 19% | 11% | 56%
internal/backport0% | 61% | 16% | 16% | 5%
_content/blog0% | 39% | 27% | 4% | 28%
internal/screentest0% | 100% | 0% | 0% | 0%
internal/history0% | 82% | 0% | 17% | 0%
cmd/golangorg0% | 73% | 0% | 15% | 11%
_content/tour0% | 22% | 0% | 4% | 72%
_content/js0% | 0% | 53% | 34% | 11%
internal/pkgdoc0% | 0% | 73% | 19% | 7%
internal/dl0% | 0% | 100% | 0% | 0%
internal/gitfs0% | 0% | 65% | 34% | 0%
internal/web0% | 0% | 46% | 42% | 10%
internal/texthtml0% | 0% | 100% | 0% | 0%
_content0% | 0% | 47% | 18% | 34%
internal/webtest0% | 0% | 100% | 0% | 0%
internal/codewalk0% | 0% | 100% | 0% | 0%
cmd/events0% | 0% | 100% | 0% | 0%
_content/lib0% | 0% | 100% | 0% | 0%
internal/tour0% | 0% | 48% | 29% | 22%
internal/tmplfunc0% | 0% | 0% | 100% | 0%
internal/api0% | 0% | 0% | 100% | 0%
internal/blog0% | 0% | 0% | 78% | 21%
internal/talks0% | 0% | 0% | 100% | 0%
internal/play0% | 0% | 0% | 66% | 33%
internal/short0% | 0% | 0% | 61% | 38%
cmd/versionprune0% | 0% | 0% | 99% | <1%
cmd/locktrigger0% | 0% | 0% | 100% | 0%
internal/spec0% | 0% | 0% | 100% | 0%
internal/memcache0% | 0% | 0% | 100% | 0%
cmd/googlegolangorg0% | 0% | 0% | 98% | 1%
_content/learn0% | 0% | 0% | 0% | 100%
_later/security0% | 0% | 0% | 0% | 100%
cmd/screentest0% | 0% | 0% | 0% | 100%
cmd/admingolangorg0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
internal/env0% | 0% | 0% | 0% | 100%
tour0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
weekly.html
in _content/doc/devel
5704 -
styles.css
in _content/css
4135 -
effective_go.html
in _content/doc
3335 -
rietveld.go
in internal/redirect
3239 1
faq.html
in _content/doc
2128 -
slidy.js
in _content/talks/2010/support
2005 96
go1.html
in _content/doc
1727 -
go1.8.html
in _content/doc
1402 -
go1.10.html
in _content/doc
1281 -
go1.5.html
in _content/doc
1106 -
go1.7.html
in _content/doc
1083 -
go1.17.html
in _content/doc
1073 -
go1.16.html
in _content/doc
1071 -
contribute.html
in _content/doc
1056 -
go1.1.html
in _content/doc
939 -
go1.15.html
in _content/doc
916 -
go1.13.html
in _content/doc
871 -
usage.html
in _content/blog/survey2016
838 -
go1.9.html
in _content/doc
830 -
go1.2.html
in _content/doc
822 -
exec.go
in internal/backport/text/template
811 51
go1.6.html
in _content/doc
797 -
go1.14.html
in _content/doc
795 -
go1.12.html
in _content/doc
780 -
node.go
in internal/backport/text/template/parse
780 124
go1.11.html
in _content/doc
756 -
go1.4.html
in _content/doc
743 -
screentest.go
in internal/screentest
691 20
escape.go
in internal/backport/html/template
679 35
source.html
in _content/doc/install
660 -
effective.html
in _content/blog/survey2016
650 -
release.go
in internal/history
645 -
parse.go
in internal/backport/text/template/parse
595 47
funcs.go
in internal/backport/text/template
594 36
server.go
in cmd/golangorg
592 31
index.html
in _content/doc/articles/wiki
590 -
background.html
in _content/blog/survey2016
583 -
effective.html
in _content/blog/survey2017
575 -
lex.go
in internal/backport/text/template/parse
552 36
app.css
in _content/tour/static/css
529 -
gopath_code.html
in _content/doc
518 -
slides.js
in _content/talks/static
506 49
playground.js
in _content/js
500 49
go1.3.html
in _content/doc
500 -
styles.css
in _content/talks/static
459 -
dev.html
in _content/blog/survey2016
457 -
gdb.html
in _content/doc
457 -
transition.go
in internal/backport/html/template
454 22
gccgo.html
in _content/doc/install
452 -
webtest.go
in internal/webtest
451 16
Files With Most Units (Top 20)
File# lines# units
node.go
in internal/backport/text/template/parse
780 124
slidy.js
in _content/talks/2010/support
2005 96
pkg.go
in internal/web
73 55
exec.go
in internal/backport/text/template
811 51
playground.js
in _content/js
500 49
slides.js
in _content/talks/static
506 49
parse.go
in internal/backport/text/template/parse
595 47
lex.go
in internal/backport/text/template/parse
552 36
funcs.go
in internal/backport/text/template
594 36
escape.go
in internal/backport/html/template
679 35
server.go
in cmd/golangorg
592 31
template.go
in internal/backport/html/template
322 31
godocs.js
in _content/js
306 29
naivemain.go
in _content/talks/2013/advconc/naivemain
442 29
realmain.go
in _content/talks/2013/advconc/realmain
439 28
fs.go
in internal/gitfs
275 26
dedupermain.go
in _content/talks/2013/advconc/dedupermain
402 25
fakemain.go
in _content/talks/2013/advconc/fakemain
400 25
r59-lex.go
in _content/talks/2011/lex
344 25
transition.go
in internal/backport/html/template
454 22
Files With Long Lines (Top 20)

There are 75 files with lines longer than 120 characters. In total, there are 603 long lines.

File# lines# units# long lines
effective.html
in _content/blog/survey2017
575 - 63
effective.html
in _content/blog/survey2016
650 - 60
background.html
in _content/blog/survey2016
583 - 50
go1.13.html
in _content/doc
871 - 33
go1.10.html
in _content/doc
1281 - 24
usage.html
in _content/blog/survey2016
838 - 22
index.html
in _content/doc
292 - 22
events.yaml
in _content
247 - 19
dev.html
in _content/blog/survey2016
457 - 16
go1.html
in _content/doc
1727 - 15
project.html
in _content/blog/survey2016
269 - 14
project.html
in _content/blog/survey2017
184 - 14
go1.12.html
in _content/doc
780 - 12
release.go
in internal/history
645 - 12
go1.17.html
in _content/doc
1073 - 11
go_talk-20100323.html
in _content/talks/2010
322 - 10
community.html
in _content/blog/survey2016
434 - 10
community.html
in _content/blog/survey2017
415 - 10
release.html
in _content/doc/devel
321 - 10
manage-install.html
in _content/doc
76 - 10