diff options
| author | Jeff Carr <[email protected]> | 2024-12-14 11:27:54 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-14 11:27:54 -0600 |
| commit | 797edb1d5c268b254106db2bab64574af7de300a (patch) | |
| tree | 1517a5afb86790dead7934e2102d6458fd1c26e4 /main.go | |
| parent | dead6fe01f7599fc3b6a6b1ee77a9e69e7b325d1 (diff) | |
more code cleanups
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -29,6 +29,7 @@ var forge *forgepb.Forge var HOSTNAME string = "go.wit.com" var REPOMAP string = "/etc/gowebd/repomap" var FOOTER string = "/etc/gowebd/footer.html" +var LIBDIR string = "/var/lib/gowebd/" func main() { if argv.RepoMap != "" { @@ -37,15 +38,19 @@ func main() { if argv.Hostname != "" { HOSTNAME = argv.Hostname } - forge = forgepb.Init() + forge = forgepb.InitPB() + versionMap = make(map[string]string) + repoMap = make(map[string]string) - all := forge.Repos.SortByGoPath() - for all.Scan() { - repo := all.Next() + /* + all := forge.Repos.SortByGoPath() + for all.Scan() { + repo := all.Next() - log.Info("forge protobuf has:", repo.GoPath) - } + log.Info("forge protobuf has:", repo.GoPath) + } + */ // parse the repomap file readRepomap() |
