12 lines
261 B
12 lines
261 B
package response
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// HTML makes an HTML response
|
|
func HTML(writer http.ResponseWriter, status int, data string) {
|
|
writer.Header().Set("Content-Type", "text/html; charset=utf-8")
|
|
writer.WriteHeader(status)
|
|
writer.Write([]byte(data))
|
|
}
|