zpack

command
v0.1.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL