Versions in this module Expand all Collapse all v2 v2.8.0 Mar 21, 2020 Changes in this version + var DefaultMinifier = &Minifier + var PropertyOverrides = map[Hash][]Hash + var ShortenColorHex = map[string][]byte + var ShortenColorName = map[Hash][]byte + func Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error + type Hash uint32 + const Accelerator + const Aliceblue + const Align_Content + const Align_Items + const Align_Self + const All + const Alpha + const Animation + const Animation_Delay + const Animation_Direction + const Animation_Duration + const Animation_Fill_Mode + const Animation_Iteration_Count + const Animation_Name + const Animation_Play_State + const Animation_Timing_Function + const Antiquewhite + const Aquamarine + const Attr + const Auto + const Azimuth + const Background + const Background_Attachment + const Background_Clip + const Background_Color + const Background_Image + const Background_Origin + const Background_Position + const Background_Position_X + const Background_Position_Y + const Background_Repeat + const Background_Size + const Behavior + const Black + const Blanchedalmond + const Blueviolet + const Bold + const Border + const Border_Bottom + const Border_Bottom_Color + const Border_Bottom_Style + const Border_Bottom_Width + const Border_Box + const Border_Collapse + const Border_Color + const Border_Left + const Border_Left_Color + const Border_Left_Style + const Border_Left_Width + const Border_Right + const Border_Right_Color + const Border_Right_Style + const Border_Right_Width + const Border_Spacing + const Border_Style + const Border_Top + const Border_Top_Color + const Border_Top_Style + const Border_Top_Width + const Border_Width + const Bottom + const Box_Shadow + const Burlywood + const Cadetblue + const Calc + const Caption_Side + const Caret_Color + const Center + const Charset + const Chartreuse + const Chocolate + const Clamp + const Clear + const Clip + const Cm + const Color + const Column_Count + const Column_Gap + const Column_Rule + const Column_Rule_Color + const Column_Rule_Style + const Column_Rule_Width + const Column_Width + const Columns + const Content + const Cornflowerblue + const Cornsilk + const Counter_Increment + const Counter_Reset + const Cue + const Cue_After + const Cue_Before + const Currentcolor + const Cursive + const Cursor + const Darkblue + const Darkcyan + const Darkgoldenrod + const Darkgray + const Darkgreen + const Darkkhaki + const Darkmagenta + const Darkolivegreen + const Darkorange + const Darkorchid + const Darksalmon + const Darkseagreen + const Darkslateblue + const Darkslategray + const Darkturquoise + const Darkviolet + const Deeppink + const Deepskyblue + const Default + const Deg + const Direction + const Display + const Document + const Dodgerblue + const Dpcm + const Dpi + const Dppx + const Elevation + const Empty_Cells + const Env + const Fantasy + const Fill + const Filter + const Firebrick + const Flex + const Flex_Basis + const Flex_Direction + const Flex_Flow + const Flex_Grow + const Flex_Shrink + const Flex_Wrap + const Float + const Floralwhite + const Font + const Font_Face + const Font_Family + const Font_Size + const Font_Size_Adjust + const Font_Stretch + const Font_Style + const Font_Variant + const Font_Weight + const Forestgreen + const Fuchsia + const Gainsboro + const Ghostwhite + const Goldenrod + const Grad + const Greenyellow + const Grid + const Grid_Area + const Grid_Auto_Columns + const Grid_Auto_Flow + const Grid_Auto_Rows + const Grid_Column + const Grid_Column_End + const Grid_Column_Gap + const Grid_Column_Start + const Grid_Row + const Grid_Row_End + const Grid_Row_Gap + const Grid_Row_Start + const Grid_Template + const Grid_Template_Areas + const Grid_Template_Columns + const Grid_Template_Rows + const Height + const Honeydew + const Hsl + const Hsla + const Hz + const Ime_Mode + const Import + const Important + const In + const Include_Source + const Indianred + const Inherit + const Initial + const Invert + const Justify_Content + const Justify_Items + const Justify_Self + const Keyframes + const Khz + const Large + const Larger + const Lavender + const Lavenderblush + const Lawngreen + const Layer_Background_Color + const Layer_Background_Image + const Layout_Flow + const Layout_Grid + const Layout_Grid_Char + const Layout_Grid_Char_Spacing + const Layout_Grid_Line + const Layout_Grid_Mode + const Layout_Grid_Type + const Left + const Lemonchiffon + const Letter_Spacing + const Lightblue + const Lightcoral + const Lightcyan + const Lightgoldenrodyellow + const Lightgray + const Lightgreen + const Lightpink + const Lightsalmon + const Lightseagreen + const Lightskyblue + const Lightslateblue + const Lightsteelblue + const Lightyellow + const Limegreen + const Line_Break + const Line_Height + const Linear_Gradient + const List_Style + const List_Style_Image + const List_Style_Position + const List_Style_Type + const Local + const Magenta + const Margin + const Margin_Bottom + const Margin_Left + const Margin_Right + const Margin_Top + const Marker_Offset + const Marks + const Mask + const Max + const Max_Height + const Max_Width + const Media + const Medium + const Mediumaquamarine + const Mediumblue + const Mediumorchid + const Mediumpurple + const Mediumseagreen + const Mediumslateblue + const Mediumspringgreen + const Mediumturquoise + const Mediumvioletred + const Midnightblue + const Min + const Min_Height + const Min_Width + const Mintcream + const Mistyrose + const Mm + const Moccasin + const Monospace + const Ms + const Ms_Filter + const Namespace + const Navajowhite + const No_Repeat + const None + const Normal + const Offset + const Offset_Anchor + const Offset_Distance + const Offset_Path + const Offset_Position + const Offset_Rotate + const Olivedrab + const Orangered + const Order + const Orphans + const Outline + const Outline_Color + const Outline_Style + const Outline_Width + const Overflow + const Overflow_X + const Overflow_Y + const Padding + const Padding_Bottom + const Padding_Box + const Padding_Left + const Padding_Right + const Padding_Top + const Page + const Page_Break_After + const Page_Break_Before + const Page_Break_Inside + const Palegoldenrod + const Palegreen + const Paleturquoise + const Palevioletred + const Papayawhip + const Pause + const Pause_After + const Pause_Before + const Pc + const Peachpuff + const Pitch + const Pitch_Range + const Place_Content + const Place_Items + const Place_Self + const Play_During + const Position + const Powderblue + const Progid + const Pt + const Px + const Q + const Quotes + const Rad + const Radial_Gradient + const Repeat + const Repeat_X + const Repeat_Y + const Rgb + const Rgba + const Richness + const Right + const Rosybrown + const Round + const Row_Gap + const Royalblue + const Ruby_Align + const Ruby_Overhang + const Ruby_Position + const S + const Saddlebrown + const Sandybrown + const Sans_Serif + const Scroll + const Scrollbar_3d_Light_Color + const Scrollbar_Arrow_Color + const Scrollbar_Base_Color + const Scrollbar_Dark_Shadow_Color + const Scrollbar_Face_Color + const Scrollbar_Highlight_Color + const Scrollbar_Shadow_Color + const Scrollbar_Track_Color + const Seagreen + const Seashell + const Serif + const Size + const Slateblue + const Slategray + const Small + const Smaller + const Solid + const Space + const Speak + const Speak_Header + const Speak_Numeral + const Speak_Punctuation + const Speech_Rate + const Springgreen + const Steelblue + const Stress + const Stroke + const Supports + const Table_Layout + const Text_Align + const Text_Align_Last + const Text_Autospace + const Text_Decoration + const Text_Decoration_Color + const Text_Decoration_Line + const Text_Decoration_Style + const Text_Decoration_Thickness + const Text_Emphasis + const Text_Emphasis_Color + const Text_Indent + const Text_Justify + const Text_Kashida_Space + const Text_Overflow + const Text_Shadow + const Text_Transform + const Text_Underline_Position + const Top + const Transition + const Transition_Delay + const Transition_Duration + const Transition_Property + const Transition_Timing_Function + const Transparent + const Turn + const Turquoise + const Unicode_Bidi + const Unset + const Url + const Var + const Vertical_Align + const Visibility + const Voice_Family + const Volume + const White + const White_Space + const Whitesmoke + const Widows + const Width + const Word_Break + const Word_Spacing + const Word_Wrap + const Writing_Mode + const X_Large + const X_Small + const Xx_Large + const Xx_Small + const Yellow + const Yellowgreen + const Z_Index + func ToHash(s []byte) Hash + func (i Hash) String() string + type Minifier struct + Decimals int + KeepCSS2 bool + Precision int + func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, params map[string]string) error + type Token struct + Args []Token + Data []byte + Fun Hash + Ident Hash + func (a Token) Equal(b Token) bool + func (t Token) IsLength() bool + func (t Token) IsLengthPercentage() bool + func (t Token) IsZero() bool + func (t Token) String() string