diff options
| author | Jeff Carr <[email protected]> | 2024-11-29 18:15:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-29 18:15:25 -0600 |
| commit | 4a79cccffd6cd20e42271eada567c4b8c0edc2f4 (patch) | |
| tree | 4f1bf43db50e09956abe22d9fb3cb9d9b8ca4717 /repo.helpers.go | |
| parent | 7615317ca72347429f665dc7db9a0fe49d86cc55 (diff) | |
attempt to use go.wit.com/apps/autogenpb for sort
Diffstat (limited to 'repo.helpers.go')
| -rw-r--r-- | repo.helpers.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/repo.helpers.go b/repo.helpers.go index 50f3277..3c33583 100644 --- a/repo.helpers.go +++ b/repo.helpers.go @@ -16,20 +16,6 @@ func (all *Repos) DeleteByPath(gopath string) *Repo { return nil } -// find a package by gopath -func (all *Repos) FindByGoPath(gopath string) *Repo { - reposMu.RLock() - defer reposMu.RUnlock() - - for _, p := range all.Repos { - if p.GoPath == gopath { - return p - } - } - - return nil -} - // enforces no duplicate gopath's func (all *Repos) add(newP *Repo) bool { reposMu.Lock() |
