11 best Go Compression libraries in 2024

share link

by naveen.kumar@openweaver.com dot icon Updated: Jan 3, 2023

technology logo
technology logo

Guide Kit 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

Go doticonstar image 3928 doticonVersion:v4.0.0-alpha.6doticon
License: Permissive (MIT)

Easily create & extract archives, and compress & decompress files of various formats

Support
    Quality
      Security
        License
          Reuse

            archiverby mholt

            Go doticon star image 3928 doticonVersion:v4.0.0-alpha.6doticon License: Permissive (MIT)

            Easily create & extract archives, and compress & decompress files of various formats
            Support
              Quality
                Security
                  License
                    Reuse

                      gocqlby gocql

                      Go doticonstar image 2414 doticonVersion:v1.4.0doticon
                      License: Permissive (BSD-3-Clause)

                      Package gocql implements a fast and robust Cassandra client for the Go programming language.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                gocqlby gocql

                                Go doticon star image 2414 doticonVersion:v1.4.0doticon License: Permissive (BSD-3-Clause)

                                Package gocql implements a fast and robust Cassandra client for the Go programming language.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          algernonby xyproto

                                          Go doticonstar image 2243 doticonVersion:v1.15.1doticon
                                          License: Permissive (BSD-3-Clause)

                                          Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    algernonby xyproto

                                                    Go doticon star image 2243 doticonVersion:v1.15.1doticon License: Permissive (BSD-3-Clause)

                                                    Small self-contained pure-Go web server with Lua, Markdown, HTTP/2, QUIC, Redis and PostgreSQL support
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              slimby openacid

                                                              Go doticonstar image 1877 doticonVersion:Currentdoticon
                                                              License: Permissive (MIT)

                                                              Surprisingly space efficient trie in Golang(11 bits/key; 100 ns/get).

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        slimby openacid

                                                                        Go doticon star image 1877 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                        Surprisingly space efficient trie in Golang(11 bits/key; 100 ns/get).
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  kopiaby kopia

                                                                                  Go doticonstar image 3769 doticonVersion:v0.13.0doticon
                                                                                  License: Permissive (Apache-2.0)

                                                                                  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.

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            kopiaby kopia

                                                                                            Go doticon star image 3769 doticonVersion:v0.13.0doticon License: Permissive (Apache-2.0)

                                                                                            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.
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse

                                                                                                      snappyby golang

                                                                                                      Go doticonstar image 1389 doticonVersion:Currentdoticon
                                                                                                      License: Permissive (BSD-3-Clause)

                                                                                                      The Snappy compression format in the Go programming language.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                snappyby golang

                                                                                                                Go doticon star image 1389 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                                                The Snappy compression format in the Go programming language.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          vfsgenby shurcooL

                                                                                                                          Go doticonstar image 929 doticonVersion:Currentdoticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          Takes an input http.FileSystem (likely at go generate time) and generates Go code that statically implements it.

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    vfsgenby shurcooL

                                                                                                                                    Go doticon star image 929 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                    Takes an input http.FileSystem (likely at go generate time) and generates Go code that statically implements it.
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              goreqby franela

                                                                                                                                              Go doticonstar image 702 doticonVersion:Currentdoticon
                                                                                                                                              License: Permissive (MIT)

                                                                                                                                              Minimal and simple request library for Go language

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        goreqby franela

                                                                                                                                                        Go doticon star image 702 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                        Minimal and simple request library for Go language
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  gorpcby valyala

                                                                                                                                                                  Go doticonstar image 677 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Permissive (MIT)

                                                                                                                                                                  Simple, fast and scalable golang rpc library for high load

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            gorpcby valyala

                                                                                                                                                                            Go doticon star image 677 doticonVersion:Currentdoticon License: Permissive (MIT)

                                                                                                                                                                            Simple, fast and scalable golang rpc library for high load
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      lz4by pierrec

                                                                                                                                                                                      Go doticonstar image 748 doticonVersion:Currentdoticon
                                                                                                                                                                                      License: Permissive (BSD-3-Clause)

                                                                                                                                                                                      LZ4 compression and decompression in pure Go

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                lz4by pierrec

                                                                                                                                                                                                Go doticon star image 748 doticonVersion:Currentdoticon License: Permissive (BSD-3-Clause)

                                                                                                                                                                                                LZ4 compression and decompression in pure Go
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          compressible-goby nearmilk

                                                                                                                                                                                                          Go doticonstar image 0 doticonVersion:Currentdoticon
                                                                                                                                                                                                          License: Permissive (MIT License)

                                                                                                                                                                                                          Compressible Content-Type / mime checking for Go.

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    compressible-goby nearmilk

                                                                                                                                                                                                                    Go doticon star image 0 doticonVersion:Currentdoticon License: Permissive (MIT License)

                                                                                                                                                                                                                    Compressible Content-Type / mime checking for Go.
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              See similar Kits and Libraries