diff options
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() |
