func searchForFile() (fullPath string, found bool, err error) {
	prevPath := ""
	dirPath, err := os.Getwd()
	if err != nil {
		return "", false, err
	}

	for dirPath != prevPath {
		fullPath, found, err = findFileInDir(dirPath)
		if err != nil || found {
			return fullPath, found, err
		}
		prevPath, dirPath = dirPath, filepath.Dir(dirPath)
	}

	return "", false, nil
}
// searchForFile checks the working directory and every parent directory to
// find a configuration file with the default name.
// This should be called when an explicit file is not passed in to determine
// the full path to the relevant config file.
searchForFile checks the working directory and every parent directory to
find a configuration file with the default name.
This should be called when an explicit file is not passed in to determine
the full path to the relevant config file.
// searchForFile checks the working directory and every parent directory to // find a configuration file with the default name . // This should be called when an explicit file is not passed in to determine // the full path to the relevant config file .
func searchForFile() (fullPath string, found bool, err error) {
	prevPath := ""
	dirPath, err := os.Getwd()
	if err != nil {
		return "", false, err
	}
	for dirPath != prevPath {
		fullPath, found, err = findFileInDir(dirPath)
		if err != nil || found {
			return fullPath, found, err
		}
		prevPath, dirPath = dirPath, filepath.Dir(dirPath)
	}
	return "", false, nil
}
func searchForFile ( ) ( fullPath string , found bool , err error ) { prevPath := " " dirPath , err := os . Getwd ( ) if err != nil { return " " , false , err } for dirPath != prevPath { fullPath , found , err = findFileInDir ( dirPath ) if err != nil || found { return fullPath , found , err } prevPath , dirPath = dirPath , filepath . Dir ( dirPath ) } return " " , false , nil }
searchForFile checks the working directory and every parent directory to
find a configuration file with the default name.
searchForFile checks the working directory and every parent directory to find a configuration file with the default name .