common

package
v0.0.0-...-9302559 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2018 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Title = iota
	Normal
	Alert
)

Variables

View Source
var Dark = []Color{
	{247, 68, 97},
	{173, 195, 192},
	{226, 211, 172},
}
View Source
var Light = []Color{
	{30, 144, 255},
	{89, 90, 78},
	{64, 56, 54},
}

Functions

func ColorIt

func ColorIt(content string, position int, style ...string) string

func RandInt

func RandInt(min, max int) int

Types

type Color

type Color struct {
	R uint8
	G uint8
	B uint8
}

Jump to

Keyboard shortcuts

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