Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-07 22:14:38 -06:00
parent 0b6afc879a
commit 0fec5555dd
3 changed files with 6 additions and 4 deletions

View File

@ -2,9 +2,8 @@ all:
echo "build it!"
# GO111MODULE=off go get -u -v .
GO111MODULE=off go build -v -x
# sudo setcap 'cap_net_bind_service=+ep' go.wit.com
./go.wit.com
@# ./myrepos >/tmp/myrepos.stderr 2>&1
su -c ./go.wit.com
# su -c "setcap 'cap_net_bind_service=+ep' go.wit.com"
goimports:
goimports -w *.go

View File

@ -53,7 +53,7 @@ func indexBodyStart(w http.ResponseWriter) {
}
func insertHTMLnote(w http.ResponseWriter, i int, parts []string) {
log.Info("comment # line:", i, strings.Join(parts, " "))
// log.Info("comment # line:", i, strings.Join(parts, " "))
fmt.Fprintln(w, " <tr> <td><h3>", strings.Join(parts, " "), "</h3></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>")
}

View File

@ -64,6 +64,9 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, j)
return
}
if tmp == "/update" {
return
}
if tmp == "/list" {
findFile(w, "files/repomap")
return