decompress

package
Version: v0.0.0-...-7e6ab84 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

A decompression plugin system. This is used for the TRADGROUP code, because <CONFIG>/active and <CONFIG>/newsgroups have compressed counterparts, one in the ".bz2" format and one in ".gz", which should be supported.

Also, i prefer to use github.com/klauspost/compress for more speed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ext string, deco Decoder, prio int)

Types

type Decoder

type Decoder func(io.ReadCloser) (io.ReadCloser, error)

func Get

func Get(ext string) Decoder

Returns the matching Decoder or nil if not supported.

ext is the file extension like ".gz", ".bz2", or, if no compression is used, "".

Source Files

Directories

Path Synopsis
A bzip2 plugin for decomp.
A bzip2 plugin for decomp.
A bzip2 plugin for decomp.
A bzip2 plugin for decomp.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL