Note in generated HTML that you do not need to use generated HTML

This commit is contained in:
Neale Pickett 2018-10-02 21:34:54 +00:00
parent d829866a15
commit f307a98fee
1 changed files with 1 additions and 0 deletions

View File

@ -75,6 +75,7 @@ func ShowHtml(w http.ResponseWriter, status Status, title string, body string) {
}
fmt.Fprintf(w, "<!DOCTYPE html>")
fmt.Fprintf(w, "<!-- If you put `application/json` in the `Accept` header of this request, you would have gotten a JSON object instead of HTML. -->\n")
fmt.Fprintf(w, "<html><head>")
fmt.Fprintf(w, "<title>%s</title>", title)
fmt.Fprintf(w, "<link rel=\"stylesheet\" href=\"basic.css\">")