aboutsummaryrefslogtreecommitdiff
path: root/zsig/zsig.go
diff options
context:
space:
mode:
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 {