archive/tar: read and write tar archives in Go
Answer: Package tar implements access to tar archives. Tape archives store a sequence of files that can be read and written in a streaming manner. The package aims to cover most variations of the format, including GNU and BSD tar tools.
What the package does
Package tar implements access to tar archives.
Format coverage in the source
Tape archives, also called tar, are a file format for storing a sequence of files.
Those files can be read and written in a streaming manner.
GNU and BSD tar tools are among the variations this package aims to cover.
The package aims to cover most variations of the format.
See also
Claims
- id: C1 claim: Package tar implements access to tar archives. source: S1 evidence: "Package tar implements access to tar archives"
- id: C2 claim: Tape archives store a sequence of files in a streaming format. source: S2 evidence: "file format for storing a sequence of files"
- id: C3 claim: The package aims to cover most variations of the format. source: S2 evidence: "aims to cover most variations of the format"
Sources
- [S1] archive/tar package reference. Go. https://pkg.go.dev/archive/tar . License: BSD-3-Clause. Accessed 2026-11-23.
- [S2] archive/tar source. Go. https://go.dev/src/archive/tar/common.go . License: BSD-3-Clause. Accessed 2026-11-23.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Go, archive/tar package reference; Go, archive/tar source. 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, archive/tar package reference; Go, archive/tar source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors.
Cite this
iinventedlight. 2026. "archive/tar: read and write tar archives in Go." iinventedlight Library, iil:note:z9q8wx49, version of 2026-11-23. https://iinventedlight.com/library/notes/go-archive-tar/. License: CC-BY-4.0.
@misc{iil_note_z9q8wx49,
author = {{iinventedlight}},
title = {{archive/tar: read and write tar archives in Go}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-23},
url = {https://iinventedlight.com/library/notes/go-archive-tar/},
note = {Permanent ID iil:note:z9q8wx49. 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-tar.schema.json (schema; CC-BY-4.0)
- go-archive-tar.table.json (table; 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-tar.md.