📅  最后修改于: 2022-03-11 14:45:01.857000             🧑  作者: Mango
err := os.WriteFile("index.txt", []byte("example writefile using go"), os.ModePerm)
if err != nil {
fmt.Println(err)
}
res, _ := os.ReadFile("index.txt")
fmt.Println(string(res))