The errors.new function does not require string formatting, so its performance is better than that of fmt.Errorf.