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: 3 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 (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T17:29:00.000Z (about 1 year ago)
- Last Synced: 2025-03-30T00:05:06.671Z (7 months ago)
- Topics: bindings, compression, golang, lzfse, lzfse-compression-algorithm
- Language: C
- Size: 636 KB
- Stars: 11
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lzfse-cgo

[](https://godoc.org/github.com/blacktop/lzfse-cgo) [](https://github.com/blacktop/lzfse-cgo/releases/latest)

> 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