xz

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: MIT Imports: 3 Imported by: 38

README

go-xz

GoDoc Build Status

Simple .xz decompression using external program (xz --decompress)

Why?

All go implementation of .xz decompression rely on liblzma dependency providing in-process decompression.

This package uses external xz utility, so no depdendencies for the compiled binary.

License

MIT

Documentation

Overview

Package xz implements simple .xz decompression using external xz program

No shared library (liblzma) dependencies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader does decompression using xz utility

func NewReader

func NewReader(src io.Reader) (*Reader, error)

NewReader creates .xz decompression reader

Internally it starts xz program, sets up input and output pipes

func (*Reader) Close

func (rd *Reader) Close() error

func (*Reader) Read

func (rd *Reader) Read(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL