diff options
| author | Jeff Carr <[email protected]> | 2024-11-30 15:33:53 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-30 15:33:53 -0600 |
| commit | 0b5687f76618025230baa4cf31e56dc1aba52d8b (patch) | |
| tree | 59d20b2a0e0f15e46877c81b570a55023cf5f331 /repoSettings.go | |
| parent | 75dd87e307793869b9dfbe56844f82096f6402fe (diff) | |
autogen more stuffv0.0.11
Diffstat (limited to 'repoSettings.go')
| -rw-r--r-- | repoSettings.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/repoSettings.go b/repoSettings.go index c44ea58..9b03ad1 100644 --- a/repoSettings.go +++ b/repoSettings.go @@ -15,7 +15,7 @@ import ( ) /* -func (f *Forge) SortByPath() *ForgeConfigIterator { +func (f *Forge) SortByGoPath() *ForgeConfigIterator { return f.Config.SortByPath() } */ @@ -37,7 +37,7 @@ func (all *ForgeConfigs) UpdateGoPath(name string, gopath string) bool { func (f *Forge) IsReadOnly(gopath string) bool { var match *ForgeConfig - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == gopath { @@ -98,7 +98,7 @@ func (f *Forge) DebName(gopath string) string { // get "zookeeper" from "go.wit.com/apps/zookeeper" normalBase := filepath.Base(gopath) - loop := f.Config.SortByPath() + loop := f.Config.SortByGoPath() for loop.Scan() { r := loop.Next() if r.GoPath == gopath { @@ -127,7 +127,7 @@ func (f *Forge) IsPrivate(thing string) bool { // sort by path means the simple 'match' logic // here works in the sense the last directory match // is the one that is used - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == thing { @@ -168,7 +168,7 @@ func (f *Forge) IsPrivate(thing string) bool { func (f *Forge) IsFavorite(thing string) bool { var match *ForgeConfig - loop := f.Config.SortByPath() // get the list of repos + loop := f.Config.SortByGoPath() // get the list of repos for loop.Scan() { r := loop.Next() if r.GoPath == thing { |
