aboutsummaryrefslogtreecommitdiff
path: root/zsig/zsig.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-05 13:16:07 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-05 13:16:07 +0200
commit301e77606e15e631ea52fd5b0ec9a5d47af2ca4c (patch)
treeb0da73f2761317033f820be23847e4a421f6fa06 /zsig/zsig.go
parent30a160bcdef676c1df238706436967f15b1c89dc (diff)
Split Header again
Diffstat (limited to 'zsig/zsig.go')
-rw-r--r--zsig/zsig.go10
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 {