github.com/gogf/gf@v1.16.9/.example/encoding/gcompress/unzip_content.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/gogf/gf/encoding/gcompress"
     7  	"github.com/gogf/gf/os/gfile"
     8  )
     9  
    10  func main() {
    11  	err := gcompress.UnZipContent(
    12  		gfile.GetBytes(`D:\Workspace\Go\GOPATH\src\github.com\gogf\gf\geg\encoding\gcompress\data.zip`),
    13  		`D:\Workspace\Go\GOPATH\src\github.com\gogf\gf\geg`,
    14  	)
    15  	fmt.Println(err)
    16  }