From a5e1583a343fe8cb0064ec0ef02d31b5005db1db Mon Sep 17 00:00:00 2001 From: VIVIMAN Date: Fri, 6 Jan 2023 18:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=A0=BC=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E5=87=BA=E7=8E=B0=E5=85=B6=E4=BB=96=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- golang_learn/data_func/go_to_http/demo03/main.go | 6 +++--- golang_learn/data_func/go_to_zip/demo5/main.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/golang_learn/data_func/go_to_http/demo03/main.go b/golang_learn/data_func/go_to_http/demo03/main.go index 16c580b..84adb03 100644 --- a/golang_learn/data_func/go_to_http/demo03/main.go +++ b/golang_learn/data_func/go_to_http/demo03/main.go @@ -11,13 +11,13 @@ import ( func main() { - if err := UnZip("help.7z", "./web/static/help"); err != nil { + if err := UnZip("help.7z", "web/static/help"); err != nil { log.Fatalln(err) } - if err := UnZip("jsmap.7z", "./src/main/resources/static/jsmap"); err != nil { + if err := UnZip("jsmap.7z", "src/main/resources/static/jsmap"); err != nil { log.Fatalln(err) } - if err := UnZip("template.7z", "./src/main/resources/static/template"); err != nil { + if err := UnZip("template.7z", "src/main/resources/static/template"); err != nil { log.Fatalln(err) } diff --git a/golang_learn/data_func/go_to_zip/demo5/main.go b/golang_learn/data_func/go_to_zip/demo5/main.go index b631c77..fa48f73 100644 --- a/golang_learn/data_func/go_to_zip/demo5/main.go +++ b/golang_learn/data_func/go_to_zip/demo5/main.go @@ -15,7 +15,7 @@ func main() { data := `data` qggwy := `qggwy` demo := `111` - fileType := `.gz` + fileType := `.zip` os.Mkdir(dirPath+`\`+demo, os.ModePerm) os.Mkdir(dirPath+`\`+fileName, os.ModePerm) UnZip(dirPath+`\`+fileName+fileType, dirPath, pwd)