Too Long; Didn't Read
Use Errors Where Appropriate, Not Strings, Wrap Errors and Format Structs Where appropriate. Use the Built-in Log Package and use the Formatters like fmt.Errorf() to log errors. Go has a built-in `error` type that makes it clear that something is wrong when the error isn’t `nil` Use the 'error' type to differentiate errors from “normal” strings. Use a function that can be used in other places to make sure functions exit without a problem in more explicit way.