Commit bf8589c
committed
refactor(stdlib): replace deprecated functions with Go 1.26 equivalents
Replace sort.Strings with slices.Sort (Go 1.21+) for generic type-safe
sorting and filepath.Walk with filepath.WalkDir (Go 1.16+) for improved
performance by avoiding extra stat calls.
- lib/fetch.go: replace sort.Strings with slices.Sort
- internal/builder/libraries.go: replace filepath.Walk with
filepath.WalkDir
Signed-off-by: Martin Wimpress <code@wimpress.io>1 parent 43dcf10 commit bf8589c
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
910 | | - | |
| 910 | + | |
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
914 | | - | |
| 914 | + | |
915 | 915 | | |
916 | 916 | | |
917 | 917 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments