diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-06-25 18:27:56 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2025-06-25 18:29:12 -0700 |
| commit | 23ddb9fca47a4a1923fc474db552418e3031b592 (patch) | |
| tree | 4a2d275a3b73361f6080330b87567d827aad076f /go.mod | |
| parent | 48e5605b6ce8eb6ee55d0502d8050d9faa50bf6b (diff) | |
Refactor copyDir and findConfigPath functions in main.go
- Refactor copyDir: Add proper error handling, resource cleanup with defer,
true recursion, better permissions (0755), and separation of concerns
- Refactor configSearchPaths -> findConfigPath: Add directory validation,
better naming, and clearer documentation
- Add comprehensive test suite for all functions with 100% test coverage
- Remove panic in copyDir, replace with proper error propagation
- Fix resource leaks by using defer for file cleanup
Diffstat (limited to 'go.mod')
0 files changed, 0 insertions, 0 deletions