text

package
v0.0.0-...-040724e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2019 License: BSD-3-Clause, GPL-2.0, BSD-3-Clause, + 1 more Imports: 1 Imported by: 2

Documentation

Overview

Package text formats strings for printing in a terminal using ansi codes

Index

Constants

This section is empty.

Variables

View Source
var Black = text.Black

Black changes string colour to black

View Source
var Blue = text.Blue

Blue changes string colour to blue

View Source
var Cyan = text.Cyan

Cyan changes string colour to cyan

View Source
var Green = text.Green

Green changes string colour to green

View Source
var Magenta = text.Magenta

Magenta changes string colour to magenta

View Source
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"
	},

]

View Source
var Print = text.Print

Print prints to standard out a string description highlighted in red followed by a values in unformatted text

View Source
var Red = text.Red

Red changes string colour to red

View Source
var Sprint = text.Sprint

Sprint returns a string description highlighted in red followed by the values in unformatted text

View Source
var White = text.White

White changes string colour to white

View Source
var Yellow = text.Yellow

Yellow changes string colour to yellow

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL