Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for Sprintf (0.31 sec)

  1. internal/logger/console.go

    		if len(line) == 0 {
    			// No more text to print, just quit.
    			break
    		}
    
    		for {
    			// Save the attributes of the current cursor helps
    			// us save the text color of the passed error message
    			ansiSaveAttributes()
    			// Print banner with or without the log tag
    			if !tagPrinted {
    				c.Print(logBanner)
    				tagPrinted = true
    			} else {
    				c.Print(emptyBanner)
    			}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. cmd/server-startup-msg.go

    		}
    
    		diskInfo := fmt.Sprintf(" %d Online, %d Offline. ", onlineDisks.Sum(), offlineDisks.Sum())
    		msg += color.Blue("Status:") + fmt.Sprintf(getFormatStr(len(diskInfo), 8), diskInfo)
    		if len(mcMessage) > 0 {
    			msg = fmt.Sprintf("%s %s", mcMessage, msg)
    		}
    	}
    	return msg
    }
    
    // Prints startup message of storage capacity and erasure information.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. internal/config/certsinfo.go

    			switch oid[3] {
    			case 3:
    				values = append(values, fmt.Sprintf("CN=%s", name.Value))
    			case 6:
    				values = append(values, fmt.Sprintf("C=%s", name.Value))
    			case 8:
    				values = append(values, fmt.Sprintf("ST=%s", name.Value))
    			case 10:
    				values = append(values, fmt.Sprintf("O=%s", name.Value))
    			case 11:
    				values = append(values, fmt.Sprintf("OU=%s", name.Value))
    			default:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  4. internal/color/color.go

    		}
    		return fmt.Sprintf
    	}()
    
    	Blue = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgBlue).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Yellow = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgYellow).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 13 16:27:40 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  5. istioctl/pkg/checkinject/checkinject.go

    		if nsMatched && podMatched {
    			if nsLabel != "" && podLabel != "" {
    				return fmt.Sprintf("Namespace label %s matches, and pod label %s matches", nsLabel, podLabel), true
    			} else if nsLabel != "" {
    				outMsg := fmt.Sprintf("Namespace label %s matches", nsLabel)
    				if strings.Contains(nsLabel, "kubernetes.io/metadata.name") {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  6. logger/sql.go

    				vars[idx] = fmt.Sprintf("%d", reflectValue.Interface())
    			case reflect.Float32, reflect.Float64:
    				vars[idx] = fmt.Sprintf("%.6f", reflectValue.Interface())
    			case reflect.Bool:
    				vars[idx] = fmt.Sprintf("%t", reflectValue.Interface())
    			case reflect.String:
    				vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    			default:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. operator/cmd/mesh/profile-diff_test.go

    			shouldFail: true,
    		},
    		{
    			args:       fmt.Sprintf("profile diff default unknown-profile --manifests %s", snapshotCharts),
    			shouldFail: true,
    		},
    		{
    			args:           fmt.Sprintf("profile diff default default --manifests %s", snapshotCharts),
    			expectedString: "Profiles are identical",
    		},
    		{
    			args:           fmt.Sprintf("profile diff demo demo --manifests %s", snapshotCharts),
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  8. istioctl/pkg/install/k8sversion/version_test.go

    			version: version1_18,
    			logMsg:  fmt.Sprintf(UnSupportedK8SVersionLogMsg, version1_18.GitVersion, pkgVersion.Info.Version, MinK8SVersion),
    			isValid: false,
    		},
    		{
    			version: version1_8,
    			logMsg:  fmt.Sprintf(UnSupportedK8SVersionLogMsg, version1_8.GitVersion, pkgVersion.Info.Version, MinK8SVersion),
    			isValid: false,
    		},
    		{
    			version: version1_17GKE,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 19 02:46:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. operator/cmd/mesh/profile-dump.go

    	case jsonOutput:
    		j, err := yamlToPrettyJSON(yaml)
    		if err != nil {
    			return "", err
    		}
    		output = fmt.Sprintf("%s\n", j)
    	case yamlOutput:
    		output = fmt.Sprintf("%s\n", yaml)
    	case flagsOutput:
    		f, err := yamlToFlags(yaml)
    		if err != nil {
    			return "", err
    		}
    		output = fmt.Sprintf("%s\n", strings.Join(f, "\n"))
    	}
    	return output, nil
    }
    
    // Convert the generated YAML to --set flags
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/cluster.go

    				if subset == "" {
    					subset = "-"
    				}
    				if includeConfigType {
    					c.Name = fmt.Sprintf("cluster/%s", c.Name)
    					_, _ = fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\t%s\t%s\n", c.Name, fqdn, port, subset, direction, c.GetType(),
    						describeManagement(c.GetMetadata()))
    				} else {
    					_, _ = fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%s\t%s\n", fqdn, port, subset, direction, c.GetType(),
    						describeManagement(c.GetMetadata()))
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top