brotli

package module
v0.0.0-...-3f28d64 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: MIT Imports: 3 Imported by: 0

README

Go bindings for the Brotli compression library

GoDoc Build Status

This is a fork of Mike Houston's https://github.com/kothar/brotli-go with the following changes:

  • Bumped to a more recent upstream (post-1.0.0)
  • Removed custom dictionary support (which was removed from upstream)

See https://github.com/google/brotli for the upstream C/C++ source, and the VERSION.md file to find out the currently vendored version.

Usage

Instead of including potentially-outdated examples in the README, please refer to the Examples tests on the following godoc pages:

Bindings

This is a very basic Cgo wrapper for the enc and dec directories from the Brotli sources.

A few minor changes have been made to get things working with Go:

  1. The default dictionary has been extracted to a separate 'common' package to allow linking the enc and dec cgo modules if you use both. Otherwise there are duplicate symbols, as described in the dictionary.h header files.

  2. The dictionary variable name for the dec package has been modified for the same reason, to avoid linker collisions.

License

Brotli and these bindings are open-sourced under the MIT License - see the LICENSE file.

Documentation

Overview

Package brotli contains bindings for the Brotli compression library

This is a very basic Cgo wrapper for the enc and dec directories from the Brotli sources. I've made a few minor changes to get things working with Go.

1. The default dictionary has been extracted to a separate 'shared' package to allow linking the enc and dec cgo modules if you use both. Otherwise there are duplicate symbols, as described in the dictionary.h header files.

2. The dictionary variable name for the dec package has been modified for the same reason, to avoid linker collisions.

Directories

Path Synopsis
Package common contains the common dictionary used by the enc and dec packages
Package common contains the common dictionary used by the enc and dec packages
Package dec provides Brotli decoder bindings
Package dec provides Brotli decoder bindings
Package enc provides Brotli encoder bindings
Package enc provides Brotli encoder bindings
A test application for applying brotli compression to files
A test application for applying brotli compression to files

Jump to

Keyboard shortcuts

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