← All notes

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

See also

Claims

Sources

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

Permanent ID: iil:note:z0e3ty5w

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.},
}

Markdown

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.

All artifact files (JSON index)

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.