Versions in this module Expand all Collapse all v0 v0.2.6 Apr 6, 2022 v0.2.5 Feb 16, 2022 v0.2.4 Aug 26, 2021 v0.2.3 Aug 26, 2021 v0.2.2 Aug 25, 2021 v0.2.1 Aug 25, 2021 v0.2.0 Aug 25, 2021 Changes in this version + func MutateNone(styles *Styles) + type Align struct + type Border struct + Bottom int + Left int + Right int + Top int + func (b *Border) UnmarshalStyle(v string) error + type Box struct + Border Border + Margin Margin + Padding Padding + type Class struct + Name string + Selectors map[string]Selector + func (c Class) Mutate(styles *Styles) + func (c Class) MutateWithSelector(sel string, styles *Styles) + type Classes map[string]Class + func DecodeClasses(r io.Reader) (Classes, error) + func (cs Classes) Mutate(styles *Styles, useClasses ...string) + func (cs Classes) MutateWithSelector(sel string, styles *Styles, useClasses ...string) + type Color struct + Background RGB + Foreground RGB + Text RGB + type Dimension struct + Height float64 + LineSpacing float64 + OffsetX float64 + OffsetY float64 + Width float64 + type Draw struct + LineWidth float64 + type Font struct + Decoration FontDecoration + Family string + PointSize float64 + Style FontStyle + Weight FontWeight + type FontDecoration string + const FontDecorationNormal + const FontDecorationUnderline + type FontStyle string + const FontStyleItalic + const FontStyleNormal + type FontWeight string + const FontWeightBold + const FontWeightNormal + type HAlign string + const HAlignBlock + const HAlignCenter + const HAlignLeft + const HAlignRight + type Margin struct + Bottom float64 + Left float64 + Right float64 + Top float64 + func (b *Margin) UnmarshalStyle(v string) error + type MutateFnc func(styles *Styles) + type Mutator struct + func DecodeMutator(r io.Reader) (*Mutator, error) + func (m *Mutator) Append(other *Mutator) + func (m *Mutator) Mutate(styles *Styles) + type Padding struct + Bottom float64 + Left float64 + Right float64 + Top float64 + func (b *Padding) UnmarshalStyle(v string) error + type RGB struct + B int + G int + R int + var Black RGB = RGB{ ... } + var White RGB = RGB{ ... } + func (c *RGB) UnmarshalStyle(s string) error + func (c RGB) String() string + func (c RGB) Values() (r, g, b int) + type Selector struct + Name string + type Styles struct + type Table struct + ColumnWidth float64 + type Unmarshaler interface + UnmarshalStyle func(v string) error + type VAlign string + const VAlignBottom + const VAlignMiddle + const VAlignTop