func main() { err := os.Symlink("/data/da", "/home/go/da") if err != nil { fmt.Println(err) //即使是错误也不退出 } err = os.Remove("/home/go/da") if err != nil { fmt.Println("/home/go/da file is remove", err) }}