mirror of
https://github.com/Crocmagnon/go-binary-size.git
synced 2024-11-14 12:23:56 +01:00
No description
app | ||
mod1 | ||
.gitignore | ||
LICENSE | ||
README.md |
go-binary-size
This repo is companion to an article published here (TODO add link).
Contents :
app
: a Go module intended as an "application" (vs library) with 4 packages compilable as single binariesa
,a2
andb
depend exclusively on matching packages frommod1
control
depends only on stdlib'sfmt
and is used as a control for what a small Go binary can weigh
mod1
: a Go module intended to represent a library thatapp
would include. It contains 3 packages:a
: depends on a large external dependency (github.com/gin-gonic/gin
) in the "normal" files and also depends on some other external dependencies exclusively used in the test files, whether in the same package or in thea_test
package.a2
: same asa
but doesn't contain test files, to show that test dependencies don't bloat the built binaryb
: depends only onfmt