Examples using... errors.As()

Recent
As finds the first error in err's chain that matches target, and if so, sets target to that error value and returns true.