func looksLikeError(i *ast.Ident) bool {
	prefix := "err"
	if i.IsExported() {
		prefix = "Err"
	}
	return strings.HasPrefix(i.Name, prefix)
}
func looksLikeError(i *ast.Ident) bool {
	prefix := "err"
	if i.IsExported() {
		prefix = "Err"
	}
	return strings.HasPrefix(i.Name, prefix)
}
func looksLikeError ( i * ast . Ident ) bool { prefix := " " if i . IsExported ( ) { prefix = " " } return strings . HasPrefix ( i . Name , prefix ) }
// looksLikeError returns true if the AST identifier starts
// with 'err' or 'Err', or false otherwise.
//
// TODO: https://github.com/leighmcculloch/gochecknoglobals/issues/5
looksLikeError returns true if the AST identifier starts with err or Err or false otherwise . TODO : https : // github . com / leighmcculloch / gochecknoglobals / issues / 5