📅  最后修改于: 2022-03-11 14:59:58.477000             🧑  作者: Mango
代码示例2
content, err := ioutil.ReadFile(filename)
if err != nil {
//Do something
}
lines := strings.Split(string(content), "\n")