gowebd/repoHTML.go

49 lines
1.5 KiB
Go

package main
import (
"fmt"
// "log"
"net/http"
)
/*
<!DOCTYPE html>
<html>
<head>
<meta name="go-import" content="go.wit.com/gui/gui git https://git.wit.org/gui/gui">
<meta name="go-source" content="go.wit.com/gui/gui https://git.wit.org/gui/gui https://git.wit.org/gui/tree/master{/dir} https://git.wit.org/gui/gui/tree/master{/dir}/{file}#L{line}">
<meta http-equiv="refresh" content="0; url=https://git.wit.org/gui/gui">
</head>
<body>
Nothing to see here. Please <a href="https://git.wit.org/gui/gui">move along</a>.
</body>
</html>
*/
func doGui(w http.ResponseWriter, path string) {
fmt.Fprintln(w, "<!DOCTYPE html>")
fmt.Fprintln(w, "<html>")
fmt.Fprintln(w, "<head>")
// fmt.Fprintln(w,
fmt.Fprintln(w, "<meta name=\"go-import\" content=\"", "go.wit.com/gui/gui", "git", "https://git.wit.org/gui/gui\">")
fmt.Fprintln(w, "<meta name=\"go-source\" content=\"", "go.wit.com/gui/gui", "https://git.wit.org/gui/gui", "https://git.wit.org/gui/tree/master{/dir}", "https://git.wit.org/gui/gui/", "tree/master{/dir}/{file}#L{line}", "\"", ">")
fmt.Fprintln(w, "<meta http-equiv=\"refresh\" content=\"0; url=", "https://git.wit.org/gui/gui", "\">")
fmt.Fprintln(w, "</head>")
fmt.Fprintln(w, "<body>")
fmt.Fprintln(w, "Nothing to see here. Please <a href=\"https://git.wit.org/gui/gui\">move along</a>.\"")
fmt.Fprintln(w, "</body>")
fmt.Fprintln(w, "</html>")
/*
var tmp string
tmp = r.URL.String()
if tmp == "/gui" {
findFile(w)
return
}
fmt.Fprintln(w, "OK")
*/
}