Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 908 for fmtE (0.12 sec)

  1. 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())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 20:46:41 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. 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
    	}()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/hash/crc32/gen_const_ppc64le.go

    		fmt.Fprintf(w, "\t/* x^%d mod p(x)%s, x^%d mod p(x)%s, x^%d mod p(x)%s, x^%d mod p(x)%s */\n", i+128, "", i+96, "", i+64, "", i+32, "")
    		fmt.Fprintf(w, "DATA ·%sConst+%d(SB)/8,$0x%08x%08x\n", polyid, j*8, c, d)
    		fmt.Fprintf(w, "DATA ·%sConst+%d(SB)/8,$0x%08x%08x\n", polyid, (j+1)*8, a, b)
    
    		j += 2
    		fmt.Fprintf(w, "\n")
    	}
    
    	fmt.Fprintf(w, "GLOBL ·%sConst(SB),RODATA,$4336\n", polyid)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/go/types/example_test.go

    	fset := token.NewFileSet()
    	var files []*ast.File
    	for _, src := range []string{
    		`package main
    import "fmt"
    func main() {
    	freezing := FToC(-18)
    	fmt.Println(freezing, Boiling) }
    `,
    		`package main
    import "fmt"
    type Celsius float64
    func (c Celsius) String() string { return fmt.Sprintf("%g°C", c) }
    func FToC(f float64) Celsius { return Celsius(f - 32 / 9 * 5) }
    const Boiling Celsius = 100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. src/internal/trace/testtrace/format.go

    		return nil, nil, fmt.Errorf("malformed test %s: wrong number of files", testPath)
    	}
    	if ar.Files[0].Name != "expect" {
    		return nil, nil, fmt.Errorf("malformed test %s: bad filename %s", testPath, ar.Files[0].Name)
    	}
    	if ar.Files[1].Name != "trace" {
    		return nil, nil, fmt.Errorf("malformed test %s: bad filename %s", testPath, ar.Files[1].Name)
    	}
    	tr, err := raw.NewTextReader(bytes.NewReader(ar.Files[1].Data))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    // Here it is incorrectly applied to a string:
    //
    //	fmt.Printf("%d", "hello") // fmt.Printf format %d has arg "hello" of wrong type string
    //
    // A call to Printf must have as many operands as there are "verbs" in
    // the format string, not too few:
    //
    //	fmt.Printf("%d") // fmt.Printf format reads arg 1, but call has 0 args
    //
    // nor too many:
    //
    //	fmt.Printf("%d", 1, 2) // fmt.Printf call needs 1 arg, but has 2 args
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. pkg/test/framework/resource/settings.go

    	result += fmt.Sprintf("FailOnDeprecation: 						 %v\n", s.FailOnDeprecation)
    	result += fmt.Sprintf("CIMode:            						 %v\n", s.CIMode)
    	result += fmt.Sprintf("Retries:           						 %v\n", s.Retries)
    	result += fmt.Sprintf("StableNamespaces:  						 %v\n", s.StableNamespaces)
    	result += fmt.Sprintf("Revision:          						 %v\n", s.Revision)
    	result += fmt.Sprintf("SkipWorkloads      						 %v\n", s.SkipWorkloadClasses)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 19:04:51 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. src/internal/trace/raw/textreader.go

    	}
    	trace, line := readToken(line)
    	if trace != "Trace" {
    		return nil, fmt.Errorf("failed to parse header")
    	}
    	gover, line := readToken(line)
    	if !strings.HasPrefix(gover, "Go1.") {
    		return nil, fmt.Errorf("failed to parse header Go version")
    	}
    	rawv, err := strconv.ParseUint(gover[len("Go1."):], 10, 64)
    	if err != nil {
    		return nil, fmt.Errorf("failed to parse header Go version: %v", err)
    	}
    	v := version.Version(rawv)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  9. cni/pkg/config/config.go

    	b.WriteString("MonitoringPort: " + fmt.Sprint(c.MonitoringPort) + "\n")
    	b.WriteString("LogUDSAddress: " + fmt.Sprint(c.LogUDSAddress) + "\n")
    	b.WriteString("CNIEventAddress: " + fmt.Sprint(c.CNIEventAddress) + "\n")
    	b.WriteString("ZtunnelUDSAddress: " + fmt.Sprint(c.ZtunnelUDSAddress) + "\n")
    
    	b.WriteString("AmbientEnabled: " + fmt.Sprint(c.AmbientEnabled) + "\n")
    	b.WriteString("AmbientDNSCapture: " + fmt.Sprint(c.AmbientDNSCapture) + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. src/go/constant/example_test.go

    	if !exact {
    		fmt.Printf("Could not represent real part %s exactly as float64\n", constant.Real(c))
    	}
    	Ai, exact := constant.Float64Val(constant.Imag(c))
    	if !exact {
    		fmt.Printf("Could not represent imaginary part %s as exactly as float64\n", constant.Imag(c))
    	}
    	C := complex(Ar, Ai)
    
    	fmt.Println("literal", 25.3+55i)
    	fmt.Println("go/constant", c)
    	fmt.Println("complex128", C)
    
    	// Output:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top