Versions in this module Expand all Collapse all v1 v1.0.1 Nov 13, 2022 Changes in this version + const FileError + const InternalServerError + const NotFoundError + const PathError + func GetString(code int) string + func HandleCustom(url string, cb func(w ResponseWriter, r *Request)) + func HandleStaticFile(url string, filename string, contentType string) + func HandleTemplate(url string, tmpl *Template) + func Init(portint int) error + func RenderTemplate(w ResponseWriter, tmpl *Template) error + func Serve() + type Request = http.Request + type ResponseWriter = http.ResponseWriter + type ServerError struct + Code int + Msg string + func Error(errNum int, msg string, w ResponseWriter) *ServerError + func (s *ServerError) ToErr() (err error) + type Template struct + Filename string + Value interface{} + func NewTemplate(filename string, val interface{}) *Template