util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
	"                               __         ",
	"   _________  ____ ___  ____  / /__  _____",
	"  / ___/ __ `/ __ `__ \\/ __ \\/ / _ \\/ ___/",
	" (__  ) /_/ / / / / / / /_/ / /  __/ /    ",
	"/____/\\__,_/_/ /_/ /_/ .___/_/\\___/_/     ",
	"                    /_/                   ",
}

Functions

func FormatDelta

func FormatDelta(value float64, scale int) string

func FormatValue

func FormatValue(value float64, scale int) string

func GetMiddlePoint

func GetMiddlePoint(rectangle image.Rectangle, text string, offset int) image.Point

func GetRectBottomSideCenter

func GetRectBottomSideCenter(rect image.Rectangle) image.Point

func GetRectCoordinates

func GetRectCoordinates(area image.Rectangle, width int, height int) (int, int, int, int)

func GetRectLeftSideCenter

func GetRectLeftSideCenter(rect image.Rectangle) image.Point

func GetRectRightSideCenter

func GetRectRightSideCenter(rect image.Rectangle) image.Point

func GetRectTopSideCenter

func GetRectTopSideCenter(rect image.Rectangle) image.Point

func Max

func Max(numbers []int) int

func ParseFloat

func ParseFloat(input string) (float64, error)

func PrintString

func PrintString(s string, style ui.Style, p image.Point, buffer *ui.Buffer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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