Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for FgWhite (0.05 sec)

  1. internal/color/color.go

    	BgRed = func() func(format string, a ...any) string {
    		if IsTerminal() {
    			return color.New(color.BgRed).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	FgWhite = func() func(format string, a ...any) string {
    		if IsTerminal() {
    			return color.New(color.FgWhite).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	TurnOff = func() {
    		color.NoColor = true
    	}
    
    	TurnOn = func() {
    		color.NoColor = false
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. internal/logger/console.go

    	fmt.Fprintln(Output, string(logJSON))
    	ExitFunc(1)
    }
    
    func (f fatalMsg) quiet(msg string, args ...any) {
    	f.pretty(msg, args...)
    }
    
    var (
    	logTag      = "FATAL"
    	logBanner   = color.BgRed(color.FgWhite(color.Bold(logTag))) + " "
    	emptyBanner = color.BgRed(strings.Repeat(" ", len(logTag))) + " "
    	bannerWidth = len(logTag) + 1
    )
    
    func (f fatalMsg) pretty(msg string, args ...any) {
    	// Build the passed error message
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.2K bytes
    - Viewed (0)
Back to top