Versions in this module Expand all Collapse all v1 v1.1.0 Nov 2, 2015 v1.0.0 Sep 12, 2015 Changes in this version + var Epsilon = 0.00001 + var ErrNotExist = errors.New("minify function does not exist for mediatype") + func Bytes(m Minifier, mediatype string, v []byte) ([]byte, error) + func ContentType(b []byte) []byte + func DataURI(m Minifier, dataURI []byte) []byte + func Number(num []byte) []byte + func String(m Minifier, mediatype string, v string) (string, error) + type Func func(m Minifier, mediatype string, w io.Writer, r io.Reader) error + type Minifier interface + Minify func(mediatype string, w io.Writer, r io.Reader) error + type Minify struct + func New() *Minify + func (m *Minify) AddCmd(mediatype string, cmd *exec.Cmd) + func (m *Minify) AddCmdRegexp(mediatype *regexp.Regexp, cmd *exec.Cmd) + func (m *Minify) AddFunc(mediatype string, minifyFunc Func) + func (m *Minify) AddFuncRegexp(mediatype *regexp.Regexp, minifyFunc Func) + func (m Minify) Minify(mediatype string, w io.Writer, r io.Reader) error Incompatible versions in this module v2.1.0+incompatible Mar 3, 2017 v2.0.0+incompatible Apr 21, 2016