change the file permission
// Change perrmissions using Linux style err := os.Chmod("test.txt", 0777) if err != nil { log.Println(err) }