golang如何删除文件?
golang删除文件的方法:
package main import "os" func main () { err := os.Remove(logFile) if err != nil { // 删除失败 } else { // 删除成功 } }