Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pkg6/go-lzfse
Go bindings for lzfse compression
https://github.com/pkg6/go-lzfse
Last synced: 7 days ago
JSON representation
Go bindings for lzfse compression
- Host: GitHub
- URL: https://github.com/pkg6/go-lzfse
- Owner: pkg6
- License: mit
- Created: 2024-03-30T02:53:48.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-03-30T06:25:41.000Z (8 months ago)
- Last Synced: 2024-06-21T01:51:16.970Z (5 months ago)
- Language: C
- Size: 86.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-lzfse
[![GoDoc](https://godoc.org/github.com/blacktop/go-lzfse?status.svg)](https://godoc.org/github.com/blacktop/go-lzfse) [![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)
> Go bindings for [lzfse](https://github.com/lzfse/lzfse) compression.
---
## Install
```bash
go get github.com/pkg6/go-lzfse
```## Examples
```golang
import (
"io/ioutil"
"log"lzfse "github.com/pkg6/go-lzfse"
"github.com/pkg/errors"
)func main() {
dat, err := ioutil.ReadFile("encoded.file")
if err != nil {
log.Fatal(errors.Wrap(err, "failed to read compressed file"))
}decompressed = lzfse.DecodeBuffer(dat)
err = ioutil.WriteFile("decoded.file", decompressed, 0644)
if err != nil {
log.Fatal(errors.Wrap(err, "failed to decompress file"))
}
}
```## Credit
-
- https://github.com/iineva/go-lzfse## License
MIT Copyright (c) 2019 blacktop