archive

package module
v0.0.0-...-cefb2f7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: MIT Imports: 5 Imported by: 0

README

Archive Build Status GoDoc Go Report Card

Simple archive (gzip/zip/bzip2) extraction

Installation

$ go get github.com/markelog/archive

Example

package main

import "github.com/markelog/archive"

func main() {
  // Will extract sexy turtles to current dir
  archive.Extract("/sexy-turtles.tar.gz", ".")

  // Will extract gangsta panda to current dir
  archive.Extract("/gangsta-panda.zip", ".")

  // Will extract killa gorilla to current dir
  archive.Extract("/killa-gorilla.tar.bz2", ".")
}

Documentation

Overview

Package archive for simple archive extraction

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(src string, dest string) error

Extract archives

Types

This section is empty.

Directories

Path Synopsis
Package bz2 extracts bzip2
Package bz2 extracts bzip2
Package detect detects mimetypes
Package detect detects mimetypes
Package gzip extracts gzips
Package gzip extracts gzips
Package tar extracts tarballs
Package tar extracts tarballs
Package zip extracts zips
Package zip extracts zips

Jump to

Keyboard shortcuts

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