11 best Go Compression libraries in 2025
by naveen.kumar@openweaver.com Updated: Jan 3, 2023
Guide Kit
Go is a lightweight programming language that's been around for a long time. It's used in many places, including GitHub, and it has a great community. The Go Compression library can help you deal with the bloated "go get" downloads that happen when you use the go get command. A single package installed on your machine will only download a fraction of what the server has to offer. The Go Compression library can be used with any language that supports the HTTP package — which means almost all languages. There are several popular open source libraries available for developers: Archiver - Easily create & extract archives, and compress & decompress files; Slim - collection of surprisingly space efficient data types, with corresponding serialization APIs to persisting them on-disk or for transport. The following is a comprehensive list of the best open source libraries.
archiverby mholt
Easily create & extract archives, and compress & decompress files of various formats
archiverby mholt
Go
3928
Version:v4.0.0-alpha.6
License: Permissive (MIT)
gocqlby gocql
Package gocql implements a fast and robust Cassandra client for the Go programming language.
gocqlby gocql
Go
2414
Version:v1.4.0
License: Permissive (BSD-3-Clause)
algernonby xyproto
Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support
algernonby xyproto
Go
2243
Version:v1.15.1
License: Permissive (BSD-3-Clause)
slimby openacid
Surprisingly space efficient trie in Golang(11 bits/key; 100 ns/get).
slimby openacid
Go
1877
Version:Current
License: Permissive (MIT)
kopiaby kopia
Cross-platform backup tool for Windows, macOS & Linux with fast, incremental backups, client-side end-to-end encryption, compression and data deduplication. CLI and GUI included.
kopiaby kopia
Go
3769
Version:v0.13.0
License: Permissive (Apache-2.0)
snappyby golang
The Snappy compression format in the Go programming language.
snappyby golang
Go
1389
Version:Current
License: Permissive (BSD-3-Clause)
vfsgenby shurcooL
Takes an input http.FileSystem (likely at go generate time) and generates Go code that statically implements it.
vfsgenby shurcooL
Go
929
Version:Current
License: Permissive (MIT)
gorpcby valyala
Simple, fast and scalable golang rpc library for high load
gorpcby valyala
Go
677
Version:Current
License: Permissive (MIT)
compressible-goby nearmilk
Compressible Content-Type / mime checking for Go.
compressible-goby nearmilk
Go
0
Version:Current
License: Permissive (MIT License)