mirror of https://github.com/docker/cli.git
818564af51
This allows us to drop the `//go:generate` and use of the github.com/mjibson/esc utility. worth noting that Go's native "embed" does not compress files. We could compress these files as part of a build / validate step (which would add some complexity when updating these files) if this is a concern, but not sure if the additional complexity is warranted. Comparing before/after sizes (see below); macOS: 54125840 - 54005264 = 120576 (+120.58 kB) Linux: 52393231 - 52277701 = 115530 (+115.53 kB) Before: ls -l build/ total 208736 lrwxr-xr-x 1 sebastiaan staff 19 Aug 15 09:36 docker@ -> docker-linux-amd64 -rwxr-xr-x 1 sebastiaan staff 54005264 Aug 15 09:35 docker-darwin-amd64* -rwxr-xr-x 1 sebastiaan staff 52277701 Aug 15 09:36 docker-linux-amd64* After: ls -l build/ total 208960 lrwxr-xr-x 1 sebastiaan staff 18 Aug 15 09:32 docker@ -> docker-linux-amd64 -rwxr-xr-x 1 sebastiaan staff 54125840 Aug 15 09:31 docker-darwin-amd64* -rwxr-xr-x 1 sebastiaan staff 52393231 Aug 15 09:32 docker-linux-amd64* Signed-off-by: Sebastiaan van Stijn <github@gone.nl> |
||
---|---|---|
.. | ||
convert | ||
interpolation | ||
loader | ||
schema | ||
template | ||
types |