~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/compress/gzip/gunzip.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
        return bufio.NewReader(r)
37
37
}
38
38
 
39
 
var HeaderError os.Error = os.ErrorString("invalid gzip header")
40
 
var ChecksumError os.Error = os.ErrorString("gzip checksum error")
 
39
var HeaderError = os.NewError("invalid gzip header")
 
40
var ChecksumError = os.NewError("gzip checksum error")
41
41
 
42
42
// The gzip file stores a header giving metadata about the compressed file.
43
43
// That header is exposed as the fields of the Compressor and Decompressor structs.