From 54a93cd5ebbaf7ed72704c1af9a8be5b8c71f5bd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 27 Nov 2024 21:26:39 -0600 Subject: protobuf 'Repos' renamed 'ForgeConfigs' --- forgeConfig.sort.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'forgeConfig.sort.go') diff --git a/forgeConfig.sort.go b/forgeConfig.sort.go index 4a10c32..d8fc4a1 100644 --- a/forgeConfig.sort.go +++ b/forgeConfig.sort.go @@ -64,7 +64,7 @@ func (r *ForgeConfigs) All() *ForgeConfigIterator { func (r *ForgeConfigs) SortByPath() *ForgeConfigIterator { packs := r.selectAllForgeConfigs() - sort.Sort(ByForgeConfigPath(packs)) + sort.Sort(byForgeConfigPath(packs)) iterator := newForgeConfigIterator(packs) return iterator @@ -112,11 +112,11 @@ func (r *ForgeConfigs) Len() int { return len(r.ForgeConfigs) } -type ByForgeConfigPath []*ForgeConfig +type byForgeConfigPath []*ForgeConfig -func (a ByForgeConfigPath) Len() int { return len(a) } -func (a ByForgeConfigPath) Less(i, j int) bool { return a[i].GoPath < a[j].GoPath } -func (a ByForgeConfigPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] } +func (a byForgeConfigPath) Len() int { return len(a) } +func (a byForgeConfigPath) Less(i, j int) bool { return a[i].GoPath < a[j].GoPath } +func (a byForgeConfigPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (all *ForgeConfigs) DeleteByPath(gopath string) *ForgeConfig { forgeConfigsLock.Lock() -- cgit v1.2.3