Browse Source

替换格式,防止出现其他异常问题

master
VIVIMAN 2 years ago
parent
commit
a5e1583a34
  1. 6
      golang_learn/data_func/go_to_http/demo03/main.go
  2. 2
      golang_learn/data_func/go_to_zip/demo5/main.go

6
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)
}

2
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)

Loading…
Cancel
Save