diff options
| author | Jeff Carr <[email protected]> | 2025-01-30 04:44:15 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-30 04:44:15 -0600 |
| commit | 47ee3f1493f06714ceb0636d8fcd5315a1515ddc (patch) | |
| tree | f5e670183576ac01a80c92195aaf3c725114678b | |
| parent | 329710f9e77decafde93f276e6b52a9f20ea7419 (diff) | |
rm old code
| -rw-r--r-- | goSrcScan.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/goSrcScan.go b/goSrcScan.go index 92917e6..3f630a6 100644 --- a/goSrcScan.go +++ b/goSrcScan.go @@ -167,37 +167,3 @@ func (f *Forge) checkpath(gopath string, url string) (*gitpb.Repo, error) { } return repo, err } - -func (f *Forge) RillRedoGoMod() int { - var all []*gitpb.Repo - tmp := f.Repos.SortByFullPath() - for tmp.Scan() { - repo := tmp.Next() - if !repo.IsValidDir() { - log.Printf("%10s %-50s", "why am I in RillRedoGoMod? old?", repo.GetGoPath()) - continue - } - f.Repos.Append(repo) - } - // Convert a slice of user IDs into a channel - ids := rill.FromSlice(all, nil) - - var counter int - // Read users from the API. - // Concurrency = 20 - dirs := rill.Map(ids, 50, func(id *gitpb.Repo) (*gitpb.Repo, error) { - return id, nil - }) - - err := rill.ForEach(dirs, 20, func(repo *gitpb.Repo) error { - counter += 1 - // repo.RedoGoMod() - return nil - }) - - if err != nil { - log.Info("rill.ForEach() error:", err) - } - - return counter -} |
