summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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()