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)