Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,019 for vfprintf (0.26 sec)

  1. src/fmt/gostringer_example_test.go

    	// Person{Name:"Warren", Age:0x1f, Addr:(*main.Address)(0x10448240)}
    	fmt.Printf("%#v\n", p1)
    
    	p2 := Person{
    		Name: "Theia",
    		Age:  4,
    	}
    	// If GoString() wasn't implemented, the output of `fmt.Printf("%#v", p2)` would be similar to
    	// Person{Name:"Theia", Age:0x4, Addr:(*main.Address)(nil)}
    	fmt.Printf("%#v\n", p2)
    
    	// Output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 06 04:25:17 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  2. cmd/ftp-server.go

    	if serverDebugLog {
    		fmt.Printf("%s %s\n", sessionID, message)
    	}
    }
    
    // Printf implement Logger
    func (log *minioLogger) Printf(sessionID string, format string, v ...interface{}) {
    	if serverDebugLog {
    		if sessionID != "" {
    			fmt.Printf("%s %s\n", sessionID, fmt.Sprintf(format, v...))
    		} else {
    			fmt.Printf(format+"\n", v...)
    		}
    	}
    }
    
    // PrintCommand implement Logger
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/example_test.go

    	// Print package-level variables in initialization order.
    	fmt.Printf("InitOrder: %v\n\n", info.InitOrder)
    
    	// For each named object, print the line and
    	// column of its definition and each of its uses.
    	fmt.Println("Defs and Uses of each named object:")
    	usesByObj := make(map[types2.Object][]string)
    	for id, obj := range info.Uses {
    		posn := id.Pos()
    		lineCol := fmt.Sprintf("%d:%d", posn.Line(), posn.Col())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. test/mergemul.go

    	model := "    a" + size + ", b" + size
    	model += fmt.Sprintf(" = %%d*n%s + %%d*(n%s+%%d), (%%d+%%d)*n%s + (%%d*%%d)", size, size, size)
    
    	test := fmt.Sprintf(model, m1, m2, k, m1, m2, m2, k)
    	test += fmt.Sprintf(`
        if a%s != b%s {
            fmt.Printf("MergeAddTest(%d, %d, %d, %s) failed\n")
            fmt.Printf("%%d != %%d\n", a%s, b%s)
            panic("FAIL")
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 14:29:38 UTC 2017
    - 3.2K bytes
    - Viewed (0)
  5. 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()))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 05:38:17 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    		// type for test
    		fmt.Fprintf(w, "type Z%du1 struct {\n", s)
    		fmt.Fprintf(w, "  b   bool\n")
    		fmt.Fprintf(w, "  val [%d]byte\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		fmt.Fprintf(w, "type Z%du2 struct {\n", s)
    		fmt.Fprintf(w, "  i   uint16\n")
    		fmt.Fprintf(w, "  val [%d]byte\n", s)
    		fmt.Fprintf(w, "}\n")
    
    		// function being tested
    		fmt.Fprintf(w, "//go:noinline\n")
    		fmt.Fprintf(w, "func zero%du1_ssa(t *Z%du1) {\n", s, s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  7. src/cmd/go/internal/cache/hash_test.go

    	h.Write([]byte("hello world"))
    	sum := fmt.Sprintf("%x", h.Sum())
    	want := "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
    	if sum != want {
    		t.Errorf("hash(hello world) = %v, want %v", sum, want)
    	}
    }
    
    func TestHashFile(t *testing.T) {
    	f, err := os.CreateTemp("", "cmd-go-test-")
    	if err != nil {
    		t.Fatal(err)
    	}
    	name := f.Name()
    	fmt.Fprintf(f, "hello world")
    	defer os.Remove(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  8. pilot/pkg/model/test/mockopenidserver.go

    	if atomic.LoadUint64(&ms.PubKeyHitNum) == ms.ReturnErrorForFirstNumHits+1 {
    		fmt.Fprintf(w, "%v", JwtPubKey1)
    		return
    	}
    
    	if ms.ReturnReorderedKeyAfterFirstNumHits != 0 && atomic.LoadUint64(&ms.PubKeyHitNum) >= ms.ReturnReorderedKeyAfterFirstNumHits+1 {
    		fmt.Fprintf(w, "%v", JwtPubKey1Reordered)
    		return
    	}
    
    	fmt.Fprintf(w, "%v", JwtPubKey2)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 09:47:21 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/errors.go

    func (err *error_) msg() string {
    	if err.empty() {
    		return "no error"
    	}
    
    	var buf strings.Builder
    	for i := range err.desc {
    		p := &err.desc[i]
    		if i > 0 {
    			fmt.Fprint(&buf, "\n\t")
    			if p.pos.IsKnown() {
    				fmt.Fprintf(&buf, "%s: ", p.pos)
    			}
    		}
    		buf.WriteString(p.msg)
    	}
    	return buf.String()
    }
    
    // report reports the error err, setting check.firstError if necessary.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. src/internal/coverage/encodemeta/encodefile.go

    	// Now emit blobs themselves.
    	for k, blob := range blobs {
    		if m.debug {
    			fmt.Fprintf(os.Stderr, "=+= writing blob %d len %d at off=%d hash %s\n", k, len(blob), off2, fmt.Sprintf("%x", md5.Sum(blob)))
    		}
    		if _, err = m.w.Write(blob); err != nil {
    			return fmt.Errorf("error writing %s: %v", m.mfname, err)
    		}
    		if m.debug {
    			fmt.Fprintf(os.Stderr, "=+= wrote package payload of %d bytes\n",
    				len(blob))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top