Documentation
¶
Overview ¶
Command zpack writes the compressed embeds of the Sweef binary (see internal/zpack for the formats and why).
zpack blob [-check] FILE|GLOB... writes FILE.z, a raw DEFLATE stream, for each source FILE zpack dir [-check] -o OUT.zar DIR packs every regular file below DIR into an archive (paths relative to DIR) zpack gofont [-check] -o OUT.zar packs the eight Go fonts of golang.org/x/image/font/gofont, hinting programs removed (dehint.go) zpack tz [-check] -o OUT.zar packs $GOROOT/lib/time/zoneinfo.zip (the IANA database), aliases stored once
With -check nothing is written: the command fails if the existing output does not decode to the current sources (it compares decoded content, so a newer Go toolchain's different but equivalent compression is not an error). The packages that embed these files run the same check as a unit test, and have a //go:generate line that regenerates them.