Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for colorPrefix (0.16 sec)

  1. istioctl/pkg/util/formatting/formatter.go

    func render(m diag.Message, colorize bool) string {
    	return fmt.Sprintf("%s%v%s [%v]%s %s",
    		colorPrefix(m, colorize), m.Type.Level(), colorSuffix(colorize),
    		m.Type.Code(), m.Origin(), fmt.Sprintf(m.Type.Template(), m.Parameters...),
    	)
    }
    
    func colorPrefix(m diag.Message, colorize bool) string {
    	if !colorize {
    		return ""
    	}
    
    	prefix, ok := colorPrefixes[m.Type.Level()]
    	if !ok {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Jul 11 02:41:45 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top