Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SupportAssumptionDetections = []SupportAssumptionDetection{ SupportAssumptionDetectionIntellij, SupportAssumptionDetectionGitlabCi, } SupportAssumptionDetectionIntellij = func() bool { return os.Getenv("IDEA_INITIAL_DIRECTORY") != "" || strings.Contains(os.Getenv("TERMINAL_EMULATOR"), "JetBrains") } SupportAssumptionDetectionGitlabCi = func() bool { return os.Getenv("CI_JOB_ID") != "" && os.Getenv("CI_RUNNER_ID") != "" } )
View Source
var (
ErrIllegalMode = errors.New("illegal color-mode")
)
View Source
var (
ErrIllegalSupport = errors.New("illegal color-support")
)
Functions ¶
This section is empty.
Types ¶
type LevelBasedColorizer ¶
var DefaultLevelBasedColorizer LevelBasedColorizer = LevelColorizerMap{ log.LevelTrace: `�[30;1m`, log.LevelDebug: `�[36;1m`, log.LevelInfo: `�[34;1m`, log.LevelWarn: `�[33;1m`, log.LevelError: `�[31;1m`, log.LevelFatal: `�[35;1m`, }
type LevelColorizerMap ¶
type Support ¶
type Support uint8
func DetectSupportForWriter ¶
func (Support) IsSupported ¶
func (Support) MarshalText ¶
func (*Support) UnmarshalText ¶
type SupportAssumptionDetection ¶
type SupportAssumptionDetection func() bool
Click to show internal directories.
Click to hide internal directories.