Documentation
¶
Index ¶
- Constants
- func AskYN(msg string) bool
- func AutoPager(data []byte) error
- func ColorSprintf(format string, colorEsc string, a ...any) string
- func CreateFile(fpath string, data []byte) error
- func EnsureDir(dir string) error
- func ErrorPrintf(format string, a ...any) (int, error)
- func Panic(msg string, err error, exitcode int)
- func WarnPrintf(format string, a ...any) (int, error)
Constants ¶
View Source
const ( COLOR_BLACK string = "\033[30m" COLOR_RED string = "\033[31m" COLOR_GREEN string = "\033[32m" COLOR_YELLOW string = "\033[33m" COLOR_BLUE string = "\033[34m" COLOR_MAGENTA string = "\033[35m" COLOR_CYAN string = "\033[36m" COLOR_WHITE string = "\033[37m" COLOR_RESET string = "\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func AutoPager ¶
AutoPager automatically determines whether to use a pager for long output, and outputs it
func CreateFile ¶
CreateFile ensures the top dirs and creates a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.