diff options
| author | Jeff Carr <[email protected]> | 2024-12-17 01:34:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-17 01:34:52 -0600 |
| commit | 17421bd22f0277503fe3a9911f26f1d80e663ad1 (patch) | |
| tree | dbc4551c3c80bc9beeddcbb4a92ce16bee860947 /scanGoSrc/main.go | |
| parent | c72040a9fb2eae45eb2c3230e148afe302f23ba2 (diff) | |
trash old and no longer working test code
Diffstat (limited to 'scanGoSrc/main.go')
| -rw-r--r-- | scanGoSrc/main.go | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/scanGoSrc/main.go b/scanGoSrc/main.go deleted file mode 100644 index f59ea77..0000000 --- a/scanGoSrc/main.go +++ /dev/null @@ -1,54 +0,0 @@ -package main - -import ( - "os" - - "go.wit.com/lib/protobuf/gitpb" - "go.wit.com/log" -) - -// sent via ldflags -var VERSION string - -func main() { - var repos *gitpb.Repos - repos = new(gitpb.Repos) - - newr, err := repos.NewGoPath("/home/jcarr/go/src", "go.wit.com/apps/wit-package") - if err != nil { - log.Info("init failed", err) - panic("crapnuts") - } else { - log.Info("init worked for", newr.GoPath) - } - - newr, err = repos.NewGoPath("/home/jcarr/go/src", "go.wit.com/apps/notathing") - if err != nil { - log.Info("init failed correctly:", err) - } else { - log.Info("init should have failed for", newr.GoPath) - panic("crapnuts") - } - - /* - log.Info(forgepb.RepoHeader()) - loop := repos.SortByPath() // get the list of repos - for loop.Scan() { - r := loop.Repo() - log.Info("repo:", r.GoPath) - } - */ - /* - log.Info("going to add a new repo", argv.GoPath) - new1 := forgepb.Repo{ - GoPath: argv.GoPath, - Writable: argv.Writable, - ReadOnly: argv.ReadOnly, - Private: argv.Private, - Directory: argv.Directory, - Favorite: argv.Favorite, - Interesting: argv.Interesting, - } - */ - os.Exit(0) -} |
