make a footer file
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
9242d7a35f
commit
316f169bc0
|
@ -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>")
|
||||
}
|
||||
|
|
1
main.go
1
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
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue