Documentation ¶
Overview ¶
Package cssmin minifies CSS. It's a port of Ryan Grove's cssmin from Ruby.
Package htmlmin minifies HTML.
Package jsmin implements JavaScript minifier. It's a direct port of Doulas Crockford's JSMin.
Index ¶
- Variables
- func MinifyCSS(css []byte) (minified []byte, err error)
- func MinifyCSS2(input []byte) ([]byte, error)
- func MinifyHTML(data []byte, options *Options) (out []byte, err error)
- func MinifyHTML2(input []byte) ([]byte, error)
- func MinifyJS(script []byte) (minified []byte, err error)
- func MinifyJS2(input []byte) ([]byte, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = &Options{ MinifyScripts: false, MinifyStyles: false, }
View Source
var FullOptions = &Options{ MinifyScripts: true, MinifyStyles: true, }
View Source
var Minify = min.New()
Functions ¶
func MinifyCSS2 ¶ added in v1.3.0
func MinifyHTML ¶
Minify returns minified version of the given HTML data. If passed options is nil, uses default options.
func MinifyHTML2 ¶ added in v1.3.0
Types ¶
Click to show internal directories.
Click to hide internal directories.