This commit is contained in:
astaxie
2014-03-31 22:50:22 +08:00
parent 64b8fc40e2
commit 43c044b31b

View File

@@ -113,7 +113,8 @@
fmt.Println("error opening file")
return err
}
defer fh.Close()
//iocopy
_, err = io.Copy(fileWriter, fh)
if err != nil {