summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-12-14 11:27:54 -0600
committerJeff Carr <[email protected]>2024-12-14 11:27:54 -0600
commit797edb1d5c268b254106db2bab64574af7de300a (patch)
tree1517a5afb86790dead7934e2102d6458fd1c26e4 /main.go
parentdead6fe01f7599fc3b6a6b1ee77a9e69e7b325d1 (diff)
more code cleanups
Diffstat (limited to 'main.go')
-rw-r--r--main.go17
1 files changed, 11 insertions, 6 deletions
diff --git a/main.go b/main.go
index d5123da..40c8449 100644
--- a/main.go
+++ b/main.go
@@ -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()