summaryrefslogtreecommitdiff
path: root/repoHTML.go
diff options
context:
space:
mode:
Diffstat (limited to 'repoHTML.go')
-rw-r--r--repoHTML.go21
1 files changed, 20 insertions, 1 deletions
diff --git a/repoHTML.go b/repoHTML.go
index f30fcca..26ecd46 100644
--- a/repoHTML.go
+++ b/repoHTML.go
@@ -2,7 +2,8 @@ package main
import (
"fmt"
- // "log"
+ "strings"
+ "go.wit.com/log"
"net/http"
)
@@ -46,3 +47,21 @@ func doGui(w http.ResponseWriter, path string) {
fmt.Fprintln(w, "OK")
*/
}
+
+func readconfigfile() {
+ pfile, err := htmlFiles.ReadFile("files/repomap")
+ if err != nil {
+ log.Error(err, "missing repomap in the binary")
+ return
+ }
+ lines := strings.Split(string(pfile), "\n")
+ for _, line := range lines {
+ fields := strings.Fields(line)
+ if (len(fields) < 2) {
+ continue
+ }
+ repo := fields[0]
+ realurl := fields[1]
+ log.Info("repo =", repo, "real url =", realurl)
+ }
+}