Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for bgRed (0.03 sec)

  1. internal/color/color.go

    	FgRed = func() func(a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed).SprintFunc()
    		}
    		return fmt.Sprint
    	}()
    
    	BgRed = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.BgRed).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	FgWhite = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/logger/console.go

    	ExitFunc(1)
    }
    
    func (f fatalMsg) quiet(msg string, args ...interface{}) {
    	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 ...interface{}) {
    	// Build the passed error message
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top