github.com/markelog/archive/detect

Simple archive extraction


Keywords
archive, bzip2, extract, golang, gzip, zip
License
MIT
Install
go get github.com/markelog/archive/detect

Documentation

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", ".")
}