参考文档:https://www.liwenzhou.com/posts/Go/file/读取文件package main import ( "fmt" "io" "os") func main() {