Versions in this module Expand all Collapse all v1 v1.0.0 Feb 25, 2021 Changes in this version + var Dev bool = false + var Log = log.New(os.Stderr, "[STATIC ERROR] ", log.LstdFlags) + func CssMinify(in []byte) []byte + func HtmlMinify(in []byte) []byte + func JsMinify(in []byte) []byte + func SvgMinify(in []byte) []byte + type Minifier func([]byte) []byte + type Server struct + Body []byte + Mime string + Minify Minifier + func Css() *Server + func Html() *Server + func Jpeg() *Server + func Js() *Server + func New(mime string, min Minifier) *Server + func Png() *Server + func SVG() *Server + func WebP() *Server + func (s *Server) Bytes(body []byte) *Server + func (s *Server) FS(fs fs.FS) *Server + func (s *Server) File(path string) *Server + func (s *Server) FileJoinPath(path ...string) *Server + func (s *Server) Func(f func() []byte) *Server + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Template struct + T *template.Template + func NewTemplate() *Template + func (t *Template) Bytes(in []byte) *Template + func (t *Template) Execute(w io.Writer, data interface{}) error + func (t *Template) File(f string) *Template + func (t *Template) FileJoinPath(path ...string) *Template + func (t *Template) Func(f func() []byte) *Template