[issue17681] Work with an extra field of gzip and zip files

2021-05-05 Thread Benjamin Sergeant
Benjamin Sergeant added the comment: type Header struct { Comment string// comment Extra []byte// "extra data" ModTime time.Time // modification time Namestring// file name OS byte // operating system type } This is what the header/ex

[issue17681] Work with an extra field of gzip and zip files

2021-05-05 Thread Benjamin Sergeant
Benjamin Sergeant added the comment: There is a comment field too which would be nice to support. The Go gzip module has a Header class that describe all the metadata. I see in 3.8 mtime was made configurable, so hopefully we can add comment and extra. https://golang.org/pkg/compress/gzip