summaryrefslogtreecommitdiff
path: root/forgeConfig.sort.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-27 21:21:06 -0600
committerJeff Carr <[email protected]>2024-11-27 21:21:06 -0600
commitf5ad4a7a41deb9f8b35c39c46d6ae31276c1e117 (patch)
tree13b669b29cf973cdd46063479e42533acb203829 /forgeConfig.sort.go
parent0fc7c2d753bc6cfdc4d64425da1a23c3735b8409 (diff)
geez
Diffstat (limited to 'forgeConfig.sort.go')
-rw-r--r--forgeConfig.sort.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/forgeConfig.sort.go b/forgeConfig.sort.go
index 4b0ff69..4a10c32 100644
--- a/forgeConfig.sort.go
+++ b/forgeConfig.sort.go
@@ -20,8 +20,8 @@ type ForgeConfigIterator struct {
index int
}
-// NewForgeConfigIterator initializes a new iterator.
-func NewForgeConfigIterator(packs []*ForgeConfig) *ForgeConfigIterator {
+// newForgeConfigIterator initializes a new iterator.
+func newForgeConfigIterator(packs []*ForgeConfig) *ForgeConfigIterator {
return &ForgeConfigIterator{packs: packs}
}
@@ -57,7 +57,7 @@ func (it *ForgeConfigIterator) Next() *ForgeConfig {
func (r *ForgeConfigs) All() *ForgeConfigIterator {
forgeConfigPointers := r.selectAllForgeConfigs()
- iterator := NewForgeConfigIterator(forgeConfigPointers)
+ iterator := newForgeConfigIterator(forgeConfigPointers)
return iterator
}
@@ -66,7 +66,7 @@ func (r *ForgeConfigs) SortByPath() *ForgeConfigIterator {
sort.Sort(ByForgeConfigPath(packs))
- iterator := NewForgeConfigIterator(packs)
+ iterator := newForgeConfigIterator(packs)
return iterator
}