Golang错误处理 我们经常会看到golang,标准库中的方法,都返回两个值,其中一个是error类型的。这就是golang错误处理的简洁逻辑。例如: func Open(name string) (*File, error) { return OpenFile(name