diff options
| author | Jeff Carr <[email protected]> | 2024-01-12 04:44:36 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-12 04:44:36 -0600 |
| commit | 0be507b8966e83830ed47f77a19068da05512e61 (patch) | |
| tree | a12affee924ece91d325becda4e0aa7366466f74 /repoHTML.go | |
| parent | 83ad5524015e155e6250743e01eeed7234ccb5a5 (diff) | |
ready to make a map, sort and compare
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'repoHTML.go')
| -rw-r--r-- | repoHTML.go | 21 |
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) + } +} |
