util

package
v0.0.0-...-1330fc7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigCharMap = map[rune][4]string{
	'0': {
		"▄▀▀▄ ",
		"█  █ ",
		"█  █ ",
		" ▀▀  ",
	},
	'1': {
		" ▄█  ",
		"  █  ",
		"  █  ",
		" ▀▀▀ ",
	},
	'2': {
		"▄▀▀▄ ",
		"  ▄▀ ",
		"▄▀   ",
		"▀▀▀▀ ",
	},
	'3': {
		"▄▀▀▄ ",
		"  ▄▀ ",
		"▄  █ ",
		" ▀▀  ",
	},
	'4': {
		"▄  █ ",
		"█▄▄█ ",
		"   █ ",
		"   ▀ ",
	},
	'5': {
		"█▀▀▀ ",
		"█▄▄  ",
		"   █ ",
		"▀▀▀  ",
	},
	'6': {
		"▄▀▀  ",
		"█▄▄  ",
		"█  █ ",
		" ▀▀  ",
	},
	'7': {
		"▀▀▀█ ",
		"  ▐▌ ",
		"  █  ",
		"  ▀  ",
	},
	'8': {
		"▄▀▀▄ ",
		"▀▄▄▀ ",
		"█  █ ",
		" ▀▀  ",
	},
	'9': {
		"▄▀▀▄ ",
		"▀▄▄█ ",
		"   █ ",
		" ▀▀  ",
	},
	'.': {
		"  ",
		"  ",
		"  ",
		"▀ ",
	},
	':': {
		"  ",
		"▀ ",
		"▀ ",
		"  ",
	},
}

Functions

func BigDigits

func BigDigits(s string) string

func EmitStr

func EmitStr(s tcell.Screen, x, y int, style tcell.Style, str string)

func FormatDuration

func FormatDuration(d time.Duration) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳