summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-06 16:51:29 -0600
committerJeff Carr <[email protected]>2024-11-06 16:51:29 -0600
commit316f169bc0e5ed955fea15aed2fd1d1055a7c5c2 (patch)
tree20715a90c8a18a29d0d62d5f6647b1906c1eb857
parent9242d7a35fc12a978a4cb2a1410f776e02fe5653 (diff)
make a footer file
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--indexHtml.go8
-rw-r--r--main.go1
-rw-r--r--resources/footer.html9
3 files changed, 10 insertions, 8 deletions
diff --git a/indexHtml.go b/indexHtml.go
index 7f56e18..1a87995 100644
--- a/indexHtml.go
+++ b/indexHtml.go
@@ -153,14 +153,6 @@ func indexDivEnd(w http.ResponseWriter) {
}
func indexBodyEnd(w http.ResponseWriter) {
- fmt.Fprintln(w, " <br>")
- fmt.Fprintln(w, "echo deb http://mirrors.wit.com/wit/ sid main > /etc/apt/sources.list.d/wit.list <br>")
- fmt.Fprintln(w, "apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4A854AEAF7E0E16D <br>")
- fmt.Fprintln(w, "apt update<br>")
- fmt.Fprintln(w, "apt install go-clone # replicates the old 'go get' behavior<br>")
- fmt.Fprintln(w, "apt install go-deb # make a debian package from a golang project<br>")
- fmt.Fprintln(w, "apt install networkquality # debian package of apple's command line speedtest tool<br>")
- fmt.Fprintln(w, "apt install virtigo # virt-manager from the command line (runs wit.com)<br>")
fmt.Fprintln(w, " </body>")
fmt.Fprintln(w, " </html>")
}
diff --git a/main.go b/main.go
index 88f7271..97a539e 100644
--- a/main.go
+++ b/main.go
@@ -54,6 +54,7 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyStart(w)
indexBodyScanConfig(w)
indexDivEnd(w)
+ writeFile(w, "footer.html")
indexBodyEnd(w)
return
}
diff --git a/resources/footer.html b/resources/footer.html
new file mode 100644
index 0000000..1501276
--- /dev/null
+++ b/resources/footer.html
@@ -0,0 +1,9 @@
+<br>
+echo deb http://mirrors.wit.com/wit/ sid main > /etc/apt/sources.list.d/wit.list <br>
+apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4A854AEAF7E0E16D <br>
+apt update<br>
+apt install go-clone # replicates the old 'go get' behavior<br>
+apt install go-deb # make a debian package from a golang project<br>
+apt install networkquality # debian package of apple's command line speedtest tool<br>
+apt install virtigo # virt-manager from the command line (runs wit.com)<br>
+<br>