Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created December 2, 2017 06:55
Show Gist options
  • Save jkotra/65312286f8e9fb48032fb0f4ae43fbd7 to your computer and use it in GitHub Desktop.
Save jkotra/65312286f8e9fb48032fb0f4ae43fbd7 to your computer and use it in GitHub Desktop.

gorar

Extract rar/zip files in Go.

Install

go get -v https://github.com/jagadeesh-kotra/gorar/

Usage

Extract RAR

RarExtractor("Unrarme.rar", "./")

Multi Archive RAR is supported.(Do not itirate,only pass first file)

Extract Zip

ZipExtractor("Unzipme.zip","./")

Credits

mholt/archiver - Error handling (Thx!)

nwaples/rardecode - rar decoding library (Thx!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment