No description
| app | ||
| mod1 | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
go-binary-size
This repo is companion to an article published here.
Contents :
app: a Go module intended as an "application" (vs library) with 4 packages compilable as single binariesa,a2andbdepend exclusively on matching packages frommod1controldepends only on stdlib'sfmtand is used as a control for what a small Go binary can weigh
mod1: a Go module intended to represent a library thatappwould 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_testpackage.a2: same asabut doesn't contain test files, to show that test dependencies don't bloat the built binaryb: depends only onfmt