Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blacktop/lzfse-cgo
Go bindings for lzfse compression
https://github.com/blacktop/lzfse-cgo
bindings compression golang lzfse lzfse-compression-algorithm
Last synced: about 2 months ago
JSON representation
Go bindings for lzfse compression
- Host: GitHub
- URL: https://github.com/blacktop/lzfse-cgo
- Owner: blacktop
- License: mit
- Created: 2019-10-02T23:13:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T17:29:00.000Z (5 months ago)
- Last Synced: 2024-07-31T21:29:41.772Z (5 months ago)
- Topics: bindings, compression, golang, lzfse, lzfse-compression-algorithm
- Language: C
- Size: 636 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lzfse-cgo
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/blacktop/lzfse-cgo/Go)
[![GoDoc](https://godoc.org/github.com/blacktop/lzfse-cgo?status.svg)](https://godoc.org/github.com/blacktop/lzfse-cgo) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/blacktop/lzfse-cgo)](https://github.com/blacktop/lzfse-cgo/releases/latest)
![GitHub](https://img.shields.io/github/license/blacktop/lzfse-cgo?color=blue)> Go bindings for [lzfse](https://github.com/lzfse/lzfse) compression.
---
## Install
```bash
go get github.com/blacktop/lzfse-cgo
```## Getting Started
```golang
import (
"log"
"os""github.com/blacktop/lzfse-cgo"
)func main() {
dat, err := os.ReadFile("encoded.file")
if err != nil {
log.Fatal(fmt.Errorf("failed to read compressed file: %v", err))
}decompressed = lzfse.DecodeBuffer(dat)
err = os.WriteFile("decoded.file", decompressed, 0644)
if err != nil {
log.Fatal(fmt.Errorf("failed to decompress file: %v", err))
}
}
```## Credit
-
-## License
MIT Copyright (c) 2019-2024 blacktop