util

package
v4.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFloatToString

func ConvertFloatToString(f float64, isVariablePrecision bool) string

ConvertFloatToString formats a float as a string including handling large or small numbers

func GetColorScheme

func GetColorScheme(colorScheme c.ConfigColorScheme) c.Styles

GetColorScheme generates a color scheme based on user defined colors or defaults

func NewStyle

func NewStyle(fg string, bg string, bold bool) func(string) string

NewStyle creates a new predefined style function

func ValueText

func ValueText(value float64, styles c.Styles) string

ValueText formats a float as a styled string

Types

This section is empty.

Jump to

Keyboard shortcuts

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