FindConfigFiles
Finds configuration files within specified search paths. If no files are found in the provided search paths, or if the search paths are empty, it then searches default configuration locations.
def FindConfigFiles(
searchPaths: []string
) - > []string
Finds configuration files within specified search paths. If no configuration files are found in the provided search paths, or if the search paths are empty, it will then search in default locations.
Parameters
| Name | Type | Description |
|---|---|---|
| searchPaths | []string | A slice of strings representing file paths or patterns to search for configuration files. These patterns can be OS-dependent and will be globbed. |
Returns
| Type | Description |
|---|---|
[]string | A slice of strings, where each string is the path to a found configuration file. |