package main import ( "fmt" "strings" "go.wit.com/log" "net/http" ) /*
Nothing to see here. Please move along. */ func doGui(w http.ResponseWriter, path string) { fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") // fmt.Fprintln(w, fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "Nothing to see here. Please move along.\"") fmt.Fprintln(w, "") fmt.Fprintln(w, "") /* var tmp string tmp = r.URL.String() if tmp == "/gui" { findFile(w) return } 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) } }