The errors package in the Go language
The purpose of errors package
Package errors implements functions to manipulate errors.
Code Anatomy
- The stuct errorString is a trivial implementation of error.
- The function New returns an error that formats as the given text.