代码 package main import ( "io" "log" "os" ) func main() { err := WriteToFile("result.txt", "Hello World\n") if err !=