Documentation
¶
Overview ¶
Package text formats strings for printing in a terminal using ansi codes
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Black = text.Black
Black changes string colour to black
var Blue = text.Blue
Blue changes string colour to blue
var Cyan = text.Cyan
Cyan changes string colour to cyan
var Green = text.Green
Green changes string colour to green
var Magenta = text.Magenta
Magenta changes string colour to magenta
var PrettyPrint = text.PrettyPrint
PrettyPrint will return an indented string of an object.
e.g.
[ { "Components": { "Glucose (g/L)": "150 g/l" }, "Volume": "351 ul" }, { "Components": { "Magnesium Sulphate (mM)": "50 mM/l" }, "Volume": "210 ul" },
]
var Print = text.Print
Print prints to standard out a string description highlighted in red followed by a values in unformatted text
var Red = text.Red
Red changes string colour to red
var Sprint = text.Sprint
Sprint returns a string description highlighted in red followed by the values in unformatted text
var White = text.White
White changes string colour to white
var Yellow = text.Yellow
Yellow changes string colour to yellow
Functions ¶
This section is empty.
Types ¶
This section is empty.