Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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