You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gophi/html.go

34 lines
911 B
Go

package main
/*
func generateHtmlErrorResponse(code ErrorResponseCode) []byte {
content :=
"<html>\n"+
"<body>\n"+
code.String()+"\n"+
"</body>\n"+
"</html>\n"
return generateHttpResponse(code, content)
}
*/
func generateHtmlRedirect(url string) []byte {
content :=
"<html>\n"+
"<head>\n"+
"<meta http-equiv=\"refresh\" content=\"1;URL="+url+"\">"+
"</head>\n"+
"<body>\n"+
"You are following an external link to a web site.\n"+
"You will be automatically taken to the site shortly.\n"+
"If you do not get sent there, please click <A HREF=\""+url+"\">here</A> to go to the web site.\n"+
"<p>\n"+
"The URL linked is <A HREF=\""+url+"\">"+url+"</A>\n"+
"<p>\n"+
"Thanks for using Gophor!\n"+
"</body>\n"+
"</html>\n"
return []byte(content)
}