xz

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2015 License: BSD-3-Clause Imports: 0 Imported by: 0

README

Package xz

This Go language package will enable reading and writing of xz-compressed files and streams. The complete package will be written in Go and will not use any existing C library.

The package is currently under development. Don't expect the code to work for you or the APIs to be stable.

Status

Package xz/lzma has now working support for "classic" lzma files. A lzmago binary supporting the typical flags for a UNIX compression command is provided.

To test it call the following command.

$ lzmago bigfile

After some time a much smaller file bigfile.lzma will replace bigfile. To decompress it use the following command.

$ lzmago -d bigfile.lzma

Be warned at this time the code cannot compete with the lzma binary from the xz tools. The algorithms in those tools have been developed over a long time and are highly optimized. But the lzmago tool happily decompresses files generated by lzma and lzma has no problems with files created by lzmago.

Documentation

Overview

Package xz allows the compression and decompression of xz files.

There is no functionality here, because I'm currently working on the components required to support parsing the xz format. Check https://github.com/ulikunitz/xz/blob/master/README.md for the current status.

Directories

Path Synopsis
The directory basics provides packages for standard types providing basic functions as addition and subtraction with overflow detection.
The directory basics provides packages for standard types providing basic functions as addition and subtraction with overflow detection.
i64
The package i64 provides basic functions supporting the int64 type.
The package i64 provides basic functions supporting the int64 type.
u32
The package u32 provides basic function for the uint32 type.
The package u32 provides basic function for the uint32 type.
cmd
xb
Package gflag implements GNU-style command line flag parsing.
Package gflag implements GNU-style command line flag parsing.
Package hash provides rolling hashes.
Package hash provides rolling hashes.
Package lzma provides a reader and a writer for LZMA streams.
Package lzma provides a reader and a writer for LZMA streams.
Package randtxt supports the generation of random text using a trigram model for the English language.
Package randtxt supports the generation of random text using a trigram model for the English language.
Package term provides the IsTerminal function.
Package term provides the IsTerminal function.
Package xlog provides a simple logging package that allows to disable certain message categories.
Package xlog provides a simple logging package that allows to disable certain message categories.

Jump to

Keyboard shortcuts

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