utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorStyle   = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.ANSIColor(9))
	WarningStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.ANSIColor(220))
	SuccessStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.ANSIColor(40))
	HeaderStyle  = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.ANSIColor(0))
)

Functions

func Coalesce

func Coalesce[T any](values ...*T) *T

func CoalesceString

func CoalesceString(vals ...string) string

func IsTerminal added in v1.1.0

func IsTerminal(v any) bool

IsTerminal determines if a file descriptor is an interactive terminal / TTY. first param is probably an io.Reader/io.Writer

func JsonifyPretty

func JsonifyPretty(val any) (string, error)

func LoadIniFile added in v1.2.0

func LoadIniFile(opts ini.LoadOptions, filename string) (*ini.File, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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