Documentation ¶
Overview ¶
This source inspired by https://github.com/fatih/color.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorAttribute ¶ added in v1.13.7
type ColorAttribute int
const ( ColorReset ColorAttribute = iota ColorBold ColorFaint ColorItalic ColorUnderline ColorBlinkSlow ColorBlinkRapid ColorReverseVideo ColorConcealed ColorCrossedOut )
const ( ColorFgHiBlack ColorAttribute = iota + 90 ColorFgHiRed ColorFgHiGreen ColorFgHiYellow ColorFgHiBlue ColorFgHiMagenta ColorFgHiCyan ColorFgHiWhite )
const ( ColorResetBold ColorAttribute = iota + 22 ColorResetItalic ColorResetUnderline ColorResetBlinking ColorResetReversed ColorResetConcealed ColorResetCrossedOut )
type Printer ¶
type Printer struct { LineNumber bool LineNumberFormat func(num int) string MapKey PrintFunc Anchor PrintFunc Alias PrintFunc Bool PrintFunc String PrintFunc Number PrintFunc Comment PrintFunc }
Printer create text from token collection or ast
func (*Printer) PrintErrorMessage ¶
func (*Printer) PrintErrorToken ¶
Click to show internal directories.
Click to hide internal directories.