Introduction to error handling strategies in Go
Error handling Introduction to error handling strategies in Go Go's approach to error handling is based on two ideas: Errors are an important part of an application's or library’s interface. Failure is just one of several expected behaviors. Thus, errors are values, just like any other values returned by a function. You should therefore pay close attention to how you create and handle them. Some functions, like strings.Contains or strconv.FormatBool , can never fail. If a function can fail,