---
via: https://blog.carlmjohnson.net/post/2020/working-with-errors-as/
作者:[Carl M. Johnson](https://carlmjohnson.net/)
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [GCTT](https://github.com/studygolang/GCTT) 原创编译,[Go 中文网](https://studygolang.com/) 荣誉推出