minifier

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(h http.Handler, logFunc LogFunc) http.Handler

NewHandler returns a minifer http handler that implements common http.Hander related interfaces and uses a common configuration for github.com/tdewolff/minify.

Types

type LogFunc

type LogFunc func(format string, a ...interface{})

LogFunc defines the function that is used by NewHandler to log error messages from minifier.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL