unexport page

Former-commit-id: 1ba9608a9c
This commit is contained in:
Henrique Dias
2017-06-25 13:00:33 +01:00
parent 7b33975f7b
commit a4fe27a6d6
5 changed files with 98 additions and 108 deletions

View File

@@ -50,8 +50,8 @@ const errTemplate = `<!DOCTYPE html>
</div>
</html>`
// PrintErrorHTML prints the error page
func PrintErrorHTML(w http.ResponseWriter, code int, err error) (int, error) {
// htmlError prints the error page
func htmlError(w http.ResponseWriter, code int, err error) (int, error) {
tpl := errTemplate
tpl = strings.Replace(tpl, "TITLE", strconv.Itoa(code)+" "+http.StatusText(code), -1)
tpl = strings.Replace(tpl, "CODE", err.Error(), -1)