{"repo":"valyala/gozstd","free":true,"listed":false,"github":"https://github.com/valyala/gozstd","clone":"git clone https://github.com/valyala/gozstd.git","description":"go wrapper for zstd","language":"C","stars":476,"topics":["zstd","compression","go","golang","streaming","dictionary"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"gozstd - go wrapper for zstd Features Vendors upstream zstd without any modifications. Simple API. Optimized for speed. The API may be easily used in zero allocations mode. Compress and Decompress functions are optimized for high concurrency. Proper Writer.Flush for network apps. Supports the following features from upstream zstd: Block / stream compression / decompression with all the supported compression levels and with dictionary support. Dictionary building from a sample set. The created dictionary may be saved to persistent storage / transfered over the network. Dictionary loading for compression / decompression. Pull requests for missing upstream zstd features are welcome. Quick start How to install gozstd ? How to compress data? The easiest way is just to use Compress: There is also StreamCompress and Writer for stream compression. How to decompress data? The easiest way is just to use Decompress: There is also StreamDecompress and Reader for stream decompression. How to cross-compile gozstd? If you're cross-compiling some code that uses gozstd and you stumble upon the following error: You can easily fix it by enabling CGO and using a cross-compiler (e.g. arm-linux-gnueabi-gcc ): NOTE : Check #21 for more info. Who uses gozstd? VictoriaMetrics FAQ Q: Which go version is supported? A: go1.10 and newer. Pull requests for older go versions are accepted. Q: Which platforms/architectures are supported? A: linux/amd64 , linux/arm , linux/arm64 , linux/ppc64le , freebsd/amd6","default_branch":null,"files":null,"tree":[],"storefront":"/r/valyala","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/valyala/gozstd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}