Versions in this module Expand all Collapse all v3 v3.2.0 Apr 11, 2026 Changes in this version type Level + func (v Level) Blue(s string) string + func (v Level) Green(s string) string + func (v Level) Purple(s string) string + func (v Level) Red(s string) string + func (v Level) Yellow(s string) string v3.1.2 Sep 6, 2025 Changes in this version + const CHAR_COLOR_SEQUENCE + const CHAR_CONTROL + const CHAR_UNSPECIFIED + const FILE_NAME_INFO_BY_HANDLE — windows/amd64 + func Fprintf(w io.Writer, format string, a ...any) (int, error) + func GetFileInformationByHandleEx(hFile syscall.Handle, fileInformationClass uint32, ...) error — windows/amd64 + func GetSize(fd int) (width, height int, err error) + func IsCygwinTerminal(fd uintptr) bool + func IsNativeTerminal(fd uintptr) bool + func IsTerminal(fd uintptr) bool + func SanitizeANSI(content string, allowColor bool) string + func SanitizedF(format string, a ...any) (int, error) + func StripANSI(s string) string + type FILE_NAME_INFO struct — windows/amd64 + FileName [512]uint16 + FileNameLength uint32 + type Level int + const Level16M + const Level256 + const LevelNone + var StderrLevel Level + var StdoutLevel Level + func (level Level) SupportColor() bool