sampler: github.com/sqshq/sampler/component/util Index | Files

package util

import "github.com/sqshq/sampler/component/util"

Index

Package Files

format.go geometry.go math.go parse.go

Variables

var  = []string{
    "                               __         ",
    "   _________  ____ ___  ____  / /__  _____",
    "  / ___/ __ `/ __ `__ \\/ __ \\/ / _ \\/ ___/",
    " (__  ) /_/ / / / / / / /_/ / /  __/ /    ",
    "/____/\\__,_/_/ /_/ /_/ .___/_/\\___/_/     ",
    "                    /_/                   ",
}

func FormatDelta Uses

func FormatDelta(value float64, scale int) string

func FormatValue Uses

func FormatValue(value float64, scale int) string

func GetMiddlePoint Uses

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

func GetRectBottomSideCenter Uses

func GetRectBottomSideCenter(rect image.Rectangle) image.Point

func GetRectCoordinates Uses

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

func GetRectLeftSideCenter Uses

func GetRectLeftSideCenter(rect image.Rectangle) image.Point

func GetRectRightSideCenter Uses

func GetRectRightSideCenter(rect image.Rectangle) image.Point

func GetRectTopSideCenter Uses

func GetRectTopSideCenter(rect image.Rectangle) image.Point

func Max Uses

func Max(numbers []int) int

func ParseFloat Uses

func ParseFloat(input string) (float64, error)

func PrintString Uses

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

Package util imports 7 packages (graph) and is imported by 6 packages. Updated 2020-01-03. Refresh now. Tools for package owners.