misc

package
v0.0.0-...-b43fa77 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsInt

func AbsInt(v int) int

func BatchFileExt

func BatchFileExt() string

BatchFileExt -

func CPrint

func CPrint(color TTerminalColor, s string)

CPrint -

func CPrintUndo

func CPrintUndo()

CPrintUndo -

func Color

func Color(colors ...TTerminalColor) string

Color -

func CommandExists

func CommandExists(names ...string) error

func IsTerminal

func IsTerminal() bool

IsTerminal -

func MaxInt

func MaxInt(a, b int) int

MaxInt -

func MinInt

func MinInt(a, b int) int

MinInt -

func NewAnsiLogger

func NewAnsiLogger(filter loglevel.TFilter, format string) *zlogger.TLogger

NewAnsiLogger -

func NewSimpleLogger

func NewSimpleLogger(filter loglevel.TFilter, format string) *zlogger.TLogger

NewSimpleLogger -

func PauseTerminal

func PauseTerminal()

PauseTerminal -

func PauseTerminalCmd

func PauseTerminalCmd() []string

PauseTerminalCmd -

func PauseTerminalStr

func PauseTerminalStr() string

PauseTerminalStr -

func RunCommand

func RunCommand(name string, args ...string) (string, error)

RunCommand -

func SliceToFile

func SliceToFile(filePath string, mode os.FileMode, values interface{}) error

SliceToFile -

func SliceToWriter

func SliceToWriter(f io.Writer, values interface{}) error

SliceToWriter -

func StringToCheckLevel

func StringToCheckLevel(s string) (int, error)

StringToCheckLevel -

Types

type TTerminalColor

type TTerminalColor int

TTerminalColor -

const (
	ColorReset TTerminalColor = iota
	ColorBold
	ColorFaint
)

-

const (
	ColorBlack TTerminalColor = 30 + iota
	ColorRed
	ColorGreen
	ColorYellow
	ColorBlue
	ColorMagenta
	ColorCyan
	ColorWhite
)

-

const (
	ColorBgBlack TTerminalColor = 40 + iota
	ColorBgRed
	ColorBgGreen
	ColorBgYellow
	ColorBgBlue
	ColorBgMagenta
	ColorBgCyan
	ColorBgWhite
)

-

Jump to

Keyboard shortcuts

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