Versions in this module Expand all Collapse all v2 v2.9.10 Dec 3, 2020 v2.7.8 Jul 26, 2020 v2.7.7 Jul 26, 2020 Changes in this version + var DefaultMinifier = &Minifier + var HashMap = map[string]Hash + func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error + type Hash uint32 + const A + const Alignment_Baseline + const BaseProfile + const Baseline_Shift + const Buffered_Rendering + const Clip + const Clip_Path + const Clip_Rule + const Color + const Color_Interpolation + const Color_Interpolation_Filters + const Color_Profile + const Color_Rendering + const ContentScriptType + const ContentStyleType + const Cursor + const D + const Defs + const Direction + const Display + const Dominant_Baseline + const Enable_Background + const FeImage + const Fill + const Fill_Opacity + const Fill_Rule + const Filter + const Flood_Color + const Flood_Opacity + const Font + const Font_Family + const Font_Size + const Font_Size_Adjust + const Font_Stretch + const Font_Style + const Font_Variant + const Font_Weight + const ForeignObject + const G + const Glyph_Orientation_Horizontal + const Glyph_Orientation_Vertical + const Height + const Href + const Image + const Image_Rendering + const Kerning + const Letter_Spacing + const Lighting_Color + const Line + const Marker + const Marker_End + const Marker_Mid + const Marker_Start + const Mask + const Metadata + const Missing_Glyph + const Opacity + const Overflow + const Paint_Order + const Path + const Pattern + const Pointer_Events + const Points + const Polygon + const Polyline + const PreserveAspectRatio + const Rect + const Rx + const Ry + const Script + const Shape_Rendering + const Solid_Color + const Solid_Opacity + const Stop_Color + const Stop_Opacity + const Stroke + const Stroke_Dasharray + const Stroke_Dashoffset + const Stroke_Linecap + const Stroke_Linejoin + const Stroke_Miterlimit + const Stroke_Opacity + const Stroke_Width + const Style + const Svg + const Switch + const Symbol + const Text_Anchor + const Text_Decoration + const Text_Rendering + const Type + const Unicode_Bidi + const Use + const Vector_Effect + const Version + const ViewBox + const Viewport_Fill + const Viewport_Fill_Opacity + const Visibility + const White_Space + const Width + const Word_Spacing + const Writing_Mode + const X + const X1 + const X2 + const Xml_Space + const Y + const Y1 + const Y2 + func ToHash(s []byte) Hash + func (i Hash) Bytes() []byte + func (i Hash) String() string + type Minifier struct + Decimals int + Precision int + func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]string) error + type PathData struct + func NewPathData(o *Minifier) *PathData + func (p *PathData) ShortenPathData(b []byte) []byte + type PathDataState struct + type Token struct + AttrVal []byte + Data []byte + Hash Hash + Text []byte + type TokenBuffer struct + func NewTokenBuffer(l *xml.Lexer) *TokenBuffer + func (z *TokenBuffer) Attributes(hashes ...Hash) []*Token + func (z *TokenBuffer) Peek(pos int) *Token + func (z *TokenBuffer) Shift() *Token Other modules containing this package github.com/alex-bacart/minify