compresstype

package module
v0.0.0-...-9fc84c7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: GPL-3.0 Imports: 5 Imported by: 2

README

compresstype

Compresstype is a golang package that can be used to detect compression formats and also to convert between some common formats

To install do :

$ go get -u github.com/LDCS/compresstype

Documentation

Overview

compresstype is a package for detecting the compression format of a file. It also has functions to convert

from one compression format to another.

Index

Constants

View Source
const (
	UNDEF int = iota
	PLAIN
	GZIP
	BZIP2
	XZ
	ZIP
)

Variables

This section is empty.

Functions

func Convert

func Convert(srcfile, stringType string) (string, error)

func DetectFileType

func DetectFileType(name string) int

func StringToType

func StringToType(t string) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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