package main // An app to submit patches for the 30 GO GUI repos import ( "os" "go.wit.com/log" ) func doRedoGoMod() { me.forge.RillRedoGoMod() os.Exit(0) all := me.forge.Repos.SortByGoPath() for all.Scan() { repo := all.Next() if !repo.IsValid() { log.Printf("%10s %-50s", "old?", repo.GetGoPath()) continue } log.Printf("running on: %-50s", repo.GetGoPath()) repo.RedoGoMod() } } func doEraseGoMod() { /* var cmds [][]string cmds = append(cmds, []string{"rm", "-f", "go.mod", "go.sum"}) errs := me.forge.RillCmds(me.packs, cmds) foreach x, y := range errs { log.Info("EraseGoMod() error", x.GoPath, y) } */ }