Skip to content
Node: zlib4 APIs

compress

Package compress provides gzip helpers similar to Node.js zlib. Node equivalent: zlib.gzip, zlib.gunzip

import "github.com/sahilkhaire/gox/compress"
## API reference

Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.

Functions

SymbolNode.jsKindSummary
GunzipgunzipSyncfuncGunzip decompresses gzip data.
GzipgzipSyncfuncGzip compresses data with gzip.
GzipReaderfuncGzipReader wraps a gzip reader over src.
GzipWriterfuncGzipWriter wraps dst with a gzip writer; caller must Close the writer.

MIT Licensed · Built for Node.js developers moving to Go