rm old code

This commit is contained in:
Jeff Carr 2024-12-11 13:50:54 -06:00
parent e4a8fa53a7
commit 95598ea910
1 changed files with 0 additions and 24 deletions

View File

@ -17,30 +17,6 @@ func globalResetOptions(box *gui.Node) {
grid.NewButton("remake 'go.work' file", func() {
me.repos.View.MakeGoWork()
/*
goSrcDir := me.goSrcPwd.String()
filename := filepath.Join(goSrcDir, "go.work")
f, err := os.OpenFile(filename, os.O_WRONLY|os.O_CREATE, 0600)
if err != nil {
return
}
defer f.Close()
fmt.Fprintln(f, "go 1.21.4")
fmt.Fprintln(f, "")
fmt.Fprintln(f, "use (")
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
repo := loop.Repo()
if repo.Status.Exists("go.mod") {
fmt.Fprintln(f, "\t"+repo.Status.GoPath())
} else {
log.Info("missing go.mod for", repo.Status.GoPath())
// repo.Status.MakeRedomod()
}
}
fmt.Fprintln(f, ")")
*/
})
grid.NextRow()