Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 646 for fmt (0.17 sec)

  1. internal/color/color.go

    		}
    		return fmt.Sprintf
    	}()
    
    	RedBold = func() func(a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintFunc()
    		}
    		return fmt.Sprint
    	}()
    
    	RedBoldf = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    Go
    - Registered: 2024-01-28 19:28
    - Last Modified: 2022-12-13 16:27
    - 3.7K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    					fmt.Fprintf(writer, "WARNING: User ID (UID) 1337 is reserved for the sidecar proxy.\n")
    				}
    			}
    		}
    	}
    
    	fmt.Fprintf(writer, "Pod: %s\n", kname(pod.ObjectMeta))
    	fmt.Fprintf(writer, "   Pod Revision: %s\n", revision)
    	if len(ports) > 0 {
    		fmt.Fprintf(writer, "   Pod Ports: %s\n", strings.Join(ports, ", "))
    	} else {
    		fmt.Fprintf(writer, "   Pod does not expose ports\n")
    	}
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2023-12-01 07:32
    - 45.3K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "去是伟大的."))
    	fmt.Println(bytes.ContainsAny([]byte("I like seafood."), ""))
    	fmt.Println(bytes.ContainsAny([]byte(""), ""))
    	// Output:
    	// true
    	// true
    	// false
    	// false
    }
    
    func ExampleContainsRune() {
    	fmt.Println(bytes.ContainsRune([]byte("I like seafood."), 'f'))
    	fmt.Println(bytes.ContainsRune([]byte("I like seafood."), 'ö'))
    Go
    - Registered: 2024-02-13 11:13
    - Last Modified: 2023-10-09 22:05
    - 15K bytes
    - Viewed (1)
  4. istioctl/pkg/writer/envoy/configdump/configdump.go

    		sb strings.Builder
    	)
    
    	fmt.Fprintf(&sb, "%d.%d.%d", version.GetMajorNumber(), version.GetMinorNumber(), version.GetPatch())
    	if label, ok := md[buildLabelKey]; ok {
    		fmt.Fprintf(&sb, "-%s", label.GetStringValue())
    	}
    	if status, ok := md[statusKey]; ok {
    		fmt.Fprintf(&sb, "/%s", status.GetStringValue())
    	}
    	if typ, ok := md[buildTypeKey]; ok {
    		fmt.Fprintf(&sb, "/%s", typ.GetStringValue())
    	}
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2024-01-21 06:07
    - 7.5K bytes
    - Viewed (0)
  5. istioctl/pkg/metrics/metrics.go

    	_, _ = fmt.Fprintf(w, "%40s\tTOTAL RPS\tERROR RPS\tP50 LATENCY\tP90 LATENCY\tP99 LATENCY\t\n", "WORKLOAD")
    	_ = w.Flush()
    }
    
    func printMetrics(writer io.Writer, wm workloadMetrics) {
    	w := tabwriter.NewWriter(writer, 13, 1, 2, ' ', tabwriter.AlignRight)
    	_, _ = fmt.Fprintf(w, "%40s\t", wm.workload)
    	_, _ = fmt.Fprintf(w, "%.3f\t", wm.totalRPS)
    	_, _ = fmt.Fprintf(w, "%.3f\t", wm.errorRPS)
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2024-01-05 02:28
    - 8.6K bytes
    - Viewed (0)
  6. istioctl/pkg/tag/tag.go

    			if len(args) == 0 {
    				return fmt.Errorf("must provide a tag for modification")
    			}
    			if len(args) > 1 {
    				return fmt.Errorf("must provide a single tag for creation")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return fmt.Errorf("failed to create Kubernetes client: %v", err)
    			}
    
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2023-11-17 22:41
    - 16.3K bytes
    - Viewed (0)
  7. cni/pkg/config/config.go

    	b.WriteString("LogUDSAddress: " + fmt.Sprint(c.LogUDSAddress) + "\n")
    
    	b.WriteString("AmbientEnabled: " + fmt.Sprint(c.AmbientEnabled) + "\n")
    	b.WriteString("AmbientDNSCapture: " + fmt.Sprint(c.AmbientDNSCapture) + "\n")
    
    	return b.String()
    }
    
    func (c RepairConfig) String() string {
    	var b strings.Builder
    	b.WriteString("Enabled: " + fmt.Sprint(c.Enabled) + "\n")
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2024-01-26 20:34
    - 5.4K bytes
    - Viewed (0)
  8. istioctl/pkg/waypoint/waypoint.go

    						break
    					}
    					if time.Since(startTime) > waitTimeout {
    						errorMsg := fmt.Sprintf("timed out while waiting for waypoint %v/%v", gw.Namespace, gw.Name)
    						if err != nil {
    							errorMsg += fmt.Sprintf(": %s", err)
    						}
    						return fmt.Errorf(errorMsg)
    					}
    				}
    			}
    			fmt.Fprintf(cmd.OutOrStdout(), "waypoint %v/%v applied\n", gw.Namespace, gw.Name)
    			return nil
    		},
    	}
    
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2024-01-19 15:04
    - 12.8K bytes
    - Viewed (0)
  9. internal/grid/muxserver.go

    		defer func() {
    			if debugPrint {
    				fmt.Println("Mux", m.ID, "Handler took", time.Since(start).Round(time.Millisecond))
    			}
    			if r := recover(); r != nil {
    				logger.LogIf(ctx, fmt.Errorf("grid handler (%v) panic: %v", msg.Handler, r))
    				debug.PrintStack()
    				err := RemoteErr(fmt.Sprintf("remote call panic: %v", r))
    				handlerErr = &err
    			}
    			if debugPrint {
    Go
    - Registered: 2024-01-28 19:28
    - Last Modified: 2024-01-28 18:04
    - 8K bytes
    - Viewed (0)
  10. istioctl/pkg/analyze/analyze.go

    				if len(result.SkippedAnalyzers) > 0 {
    					fmt.Fprintln(cmd.ErrOrStderr(), "Skipped analyzers:")
    					for _, a := range result.SkippedAnalyzers {
    						fmt.Fprintln(cmd.ErrOrStderr(), "\t", a)
    					}
    				}
    				if len(result.ExecutedAnalyzers) > 0 {
    					fmt.Fprintln(cmd.ErrOrStderr(), "Executed analyzers:")
    					for _, a := range result.ExecutedAnalyzers {
    						fmt.Fprintln(cmd.ErrOrStderr(), "\t", a)
    					}
    				}
    Go
    - Registered: 2024-02-14 22:53
    - Last Modified: 2023-10-12 15:11
    - 15.7K bytes
    - Viewed (0)
Back to top