1
0

template.go 381 B

12345678910111213141516171819
  1. package utils
  2. import (
  3. "net/http"
  4. )
  5. /*
  6. Web Template Generator
  7. This is the main system core module that perform function similar to what PHP did.
  8. To replace part of the content of any file, use {{paramter}} to replace it.
  9. */
  10. func SendHTMLResponse(w http.ResponseWriter, msg string) {
  11. w.Header().Set("Content-Type", "text/html")
  12. w.Write([]byte(msg))
  13. }