Read and merge all files in the specified config filesystem matching the patterns ` .json` and ` /*.json`
(fsys fs.FS, logPrefix string, partName string, simpleMerge bool)
| 649 | |
| 650 | // Read and merge all files in the specified config filesystem matching the patterns `<partName>.json` and `<partName>/*.json` |
| 651 | func readConfigPartForFS(fsys fs.FS, logPrefix string, partName string, simpleMerge bool) (waveobj.MetaMapType, []ConfigError) { |
| 652 | config, errs := readConfigFilesForDir(fsys, logPrefix, partName, "", simpleMerge) |
| 653 | allErrs := errs |
| 654 | rtn := config |
| 655 | config, errs = readConfigFileFS(fsys, logPrefix, partName+".json") |
| 656 | allErrs = append(allErrs, errs...) |
| 657 | return mergeMetaMap(rtn, config, simpleMerge), allErrs |
| 658 | } |
| 659 | |
| 660 | // Combine files from the defaults and home directory for the specified config part name |
| 661 | func readConfigPart(partName string, simpleMerge bool) (waveobj.MetaMapType, []ConfigError) { |
no test coverage detected