tianon / gosu

Simple Go-based setuid+setgid+setgroups+exec
Apache License 2.0
4.68k stars 312 forks source link

Ditch `fmt`, `log`, `path/filepath`, and `strings` for ~17KB more savings #139

Closed tianon closed 5 months ago

tianon commented 5 months ago
$ stat --format '% 11n %s' gosu-before gosu-after
gosu-before 1495254
 gosu-after 1478001

See also https://github.com/tianon/gosu/pull/138

tianon commented 5 months ago

(of course, the real win here isn't actually binary size, but less included code and thus even less govulncheck potential hit paths)