README ¶ gzip 注意点 header fields是可选的,可填可不填。但是填了的话,会影响压缩结果的长度。 查看压缩后的结果要在write调用了close之后查看 参考资料 https://golang.org/pkg/compress/gzip/ 运行结果 Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.