diff options
| author | Jeff Carr <[email protected]> | 2025-03-27 06:26:46 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-27 06:26:46 -0500 |
| commit | 7297b63339bc3be682137313413f3c82beb0ebb3 (patch) | |
| tree | bd0a7e83364f82bd6ff2f297193409bd30ec2dbe /gitTag.byAge.go | |
| parent | acc18b186ff91d5e5d2e36996e31332f56c397d6 (diff) | |
fixed name as a 'scanner'
Diffstat (limited to 'gitTag.byAge.go')
| -rw-r--r-- | gitTag.byAge.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gitTag.byAge.go b/gitTag.byAge.go index 6c4a852..aac234d 100644 --- a/gitTag.byAge.go +++ b/gitTag.byAge.go @@ -12,7 +12,7 @@ import ( // todo: probably switch to using slices. new things added in 1.23 // https://pkg.go.dev/slices -func (all *GitTags) newSort() *GitTagIterator { +func (all *GitTags) newSort() *GitTagScanner { slices.SortFunc(all.GitTags, func(a, b *GitTag) int { if n := strings.Compare(a.Name, b.Name); n != 0 { return n @@ -44,12 +44,12 @@ func (all *GitTags) GetAge(name string) time.Time { return newest } -func (all *GitTags) SortByAge() *GitTagIterator { +func (all *GitTags) SortByAge() *GitTagScanner { packs := all.selectAllGitTags() sort.Sort(GitTagAge(packs)) - iterator := newGitTagIterator(packs) + iterator := newGitTagScanner(packs) return iterator } |
