Documentation ¶
Index ¶
- func AbsInt(v int) int
- func BatchFileExt() string
- func CPrint(color TTerminalColor, s string)
- func CPrintUndo()
- func Color(colors ...TTerminalColor) string
- func CommandExists(names ...string) error
- func IsTerminal() bool
- func MaxInt(a, b int) int
- func MinInt(a, b int) int
- func NewAnsiLogger(filter loglevel.TFilter, format string) *zlogger.TLogger
- func NewSimpleLogger(filter loglevel.TFilter, format string) *zlogger.TLogger
- func PauseTerminal()
- func PauseTerminalCmd() []string
- func PauseTerminalStr() string
- func RunCommand(name string, args ...string) (string, error)
- func SliceToFile(filePath string, mode os.FileMode, values interface{}) error
- func SliceToWriter(f io.Writer, values interface{}) error
- func StringToCheckLevel(s string) (int, error)
- type TTerminalColor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandExists ¶
func NewAnsiLogger ¶
NewAnsiLogger -
func NewSimpleLogger ¶
NewSimpleLogger -
func SliceToFile ¶
SliceToFile -
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 )
-
Click to show internal directories.
Click to hide internal directories.