Go archive/zip: read and write ZIP archives
Answer: Package zip provides support for reading and writing ZIP archives. This package does not support disk spanning. File content can be accessed by calling File.Open. Multiple files may be read concurrently.
Examples
r, err := zip.OpenReader("a.zip")
Notes
See the ZIP specification for details.
Reference list
archive/zipreads and writes ZIP archives.disk spanningis not supported.File.Openis how you access a file's content.
See also
Claims
- id: C1 claim: Package zip provides support for reading and writing ZIP archives. source: S1 evidence: "Package zip provides support for reading and writing ZIP archives."
- id: C2 claim: This package does not support disk spanning. source: S1 evidence: "This package does not support disk spanning."
- id: C3 claim: File content can be accessed by calling File.Open. source: S2 evidence: "The file content can be accessed by calling [File.Open]."
Sources
- [S1] archive/zip package. Go docs. https://pkg.go.dev/archive/zip . License: BSD-3-Clause. Accessed 2026-11-18.
- [S2] zip reader.go. Go source. https://raw.githubusercontent.com/golang/go/master/src/archive/zip/reader.go . License: BSD-3-Clause. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Go docs, archive/zip package; Go source, zip reader.go. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Go docs, archive/zip package; Go source, zip reader.go. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors.
Cite this
iinventedlight. 2026. "Go archive/zip: read and write ZIP archives." iinventedlight Library, iil:note:z0e3ty5w, version of 2026-11-18. https://iinventedlight.com/library/notes/go-archive-zip/. License: CC-BY-4.0.
@misc{iil_note_z0e3ty5w,
author = {{iinventedlight}},
title = {{Go archive/zip: read and write ZIP archives}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/go-archive-zip/},
note = {Permanent ID iil:note:z0e3ty5w. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- go-archive-zip.table.json (table; CC-BY-4.0)
- go-archive-zip.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/go-archive-zip.md.