archive
Package archive provides zip and tar.gz helpers. Node equivalent: archiver, adm-zip, tar.
import "github.com/sahilkhaire/gox/archive"
Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.
Functions
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| TarCreate | — | func | TarCreate builds a gzip-compressed tar archive. |
| TarExtract | — | func | TarExtract extracts a gzip-compressed tar archive into destDir. |
| ZipCreate | — | func | ZipCreate builds a zip archive from a map of path -> contents. |
| ZipCreateEntries | — | func | ZipCreateEntries builds a zip archive from file entries. |
| ZipExtract | — | func | ZipExtract writes zip data into destDir. |
Types
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| FileEntry | — | type | FileEntry is a named file for archive creation. |