summaryrefslogtreecommitdiff
path: root/repoHTML.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-12 13:52:55 -0600
committerJeff Carr <[email protected]>2024-01-12 13:52:55 -0600
commite6e9b548cbe027416d5c3924cf4c131d2dd4fe1f (patch)
treeb68b1d095e1667906529e77e0d9b1552ce78f484 /repoHTML.go
parente34f8f57342fe940901c73c9d3fb391680eb7ecc (diff)
90% there
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'repoHTML.go')
-rw-r--r--repoHTML.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/repoHTML.go b/repoHTML.go
index 51a759b..f1426e5 100644
--- a/repoHTML.go
+++ b/repoHTML.go
@@ -52,6 +52,7 @@ func doGui(w http.ResponseWriter, gourl string, realurl string) {
}
var repoMap map[string]string
+var configfile []string
var keysSorted []string
func findkey(url string) (string, string) {
@@ -70,8 +71,8 @@ func readconfigfile() {
log.Error(err, "missing repomap in the binary")
return
}
- lines := strings.Split(string(pfile), "\n")
- for _, line := range lines {
+ configfile = strings.Split(string(pfile), "\n")
+ for _, line := range configfile {
fields := strings.Fields(line)
if (len(fields) < 2) {
continue