diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2017-08-05 13:16:07 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2017-08-05 13:16:07 +0200 |
commit | 301e77606e15e631ea52fd5b0ec9a5d47af2ca4c (patch) | |
tree | b0da73f2761317033f820be23847e4a421f6fa06 /zsig/zsig.go | |
parent | 30a160bcdef676c1df238706436967f15b1c89dc (diff) |
Split Header again
Diffstat (limited to 'zsig/zsig.go')
-rw-r--r-- | zsig/zsig.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/zsig/zsig.go b/zsig/zsig.go index e726f04..a254e05 100644 --- a/zsig/zsig.go +++ b/zsig/zsig.go @@ -26,15 +26,19 @@ const ( var fake = []byte{gzipID1, gzipID2, gzipDeflate, flagComment, 0, 0, 0, 0, 0, osUnix} -type Reader struct { - *bufio.Reader +type Header struct { Comment string Extra []byte ModTime time.Time Name string OS byte CRC uint16 - crc hash.Hash32 +} + +type Reader struct { + Header + *bufio.Reader + crc hash.Hash32 } func noEOF(err error) error { |