unzip

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2019 License: MIT Imports: 5 Imported by: 0

README

Unzip

Build Status GoDoc

Golang *.zip decompress.

Fork from https://github.com/artdarek/go-unzip and remove print, add support for Symlink.

Thank artdarek.

Usage

import "github.com/yi-ge/unzip"

u := unzip.New(filePath, outDir)
err := u.Extract()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unzip

type Unzip struct {
	Src  string
	Dest string
}

Unzip - struct

func New

func New(src string, dest string) Unzip

New - Create a new Unzip.

func (Unzip) Extract

func (uz Unzip) Extract() error

Extract - Extract zip file.

Jump to

Keyboard shortcuts

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