Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,760 for sfprintf (0.13 sec)

  1. src/cmd/link/linkbig_test.go

    	fmt.Fprintf(&w, "\t\"fmt\"\n")
    	fmt.Fprintf(&w, ")\n\n")
    
    	for i := 0; i < FN; i++ {
    		fmt.Fprintf(&w, "func bigfn%d()\n", i)
    	}
    	fmt.Fprintf(&w, "\nfunc main() {\n")
    
    	// There are lots of dummy code generated in the .s files just to generate a lot
    	// of text. Link them in but guard their call so their code is not executed but
    	// the main part of the program can be run.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  2. operator/cmd/mesh/shared.go

    }
    
    type Printer interface {
    	Printf(format string, a ...any)
    	Println(string)
    }
    
    func NewPrinterForWriter(w io.Writer) Printer {
    	return &writerPrinter{writer: w}
    }
    
    type writerPrinter struct {
    	writer io.Writer
    }
    
    func (w *writerPrinter) Printf(format string, a ...any) {
    	_, _ = fmt.Fprintf(w.writer, format, a...)
    }
    
    func (w *writerPrinter) Println(str string) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 29 02:29:02 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/fmt.go

    			if n.Value != nil {
    				fmt.Fprintf(s, ", %v", n.Value)
    			}
    			fmt.Fprint(s, " =")
    		}
    		fmt.Fprintf(s, " range %v { %v }", n.X, n.Body)
    		if n.DistinctVars {
    			fmt.Fprint(s, " /* distinct vars */")
    		}
    
    	case OSELECT:
    		n := n.(*SelectStmt)
    		if !exportFormat {
    			fmt.Fprintf(s, "%v statement", n.Op())
    			break
    		}
    		fmt.Fprintf(s, "select { %v }", n.Cases)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser_test.go

    	if !bytes.Equal(bytes1, bytes2) {
    		fmt.Printf("--- %s ---\n", filename)
    		fmt.Printf("%s\n", bytes1)
    		fmt.Println()
    
    		fmt.Printf("--- %s ---\n", filename)
    		fmt.Printf("%s\n", bytes2)
    		fmt.Println()
    
    		t.Error("printed syntax trees do not match")
    	}
    }
    
    func TestIssue17697(t *testing.T) {
    	_, err := Parse(nil, bytes.NewReader(nil), nil, nil, 0) // return with parser error, don't panic
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/flags/flags.go

    type MultiFlag []string
    
    func (m *MultiFlag) String() string {
    	if len(*m) == 0 {
    		return ""
    	}
    	return fmt.Sprint(*m)
    }
    
    func (m *MultiFlag) Set(val string) error {
    	(*m) = append(*m, val)
    	return nil
    }
    
    func Usage() {
    	fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n")
    	fmt.Fprintf(os.Stderr, "Flags:\n")
    	flag.PrintDefaults()
    	os.Exit(2)
    }
    
    func Parse() {
    	objabi.Flagparse(Usage)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:23 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  6. istioctl/pkg/analyze/analyze.go

    	for _, aName := range analyzerNames {
    		b.WriteString(fmt.Sprintf("* %s:\n", aName))
    		a := nameToAnalyzer[aName]
    		if a.Metadata().Description != "" {
    			b.WriteString(fmt.Sprintf("    %s\n", a.Metadata().Description))
    		}
    	}
    	return b.String()
    }
    
    func analyzeTargetAsString() string {
    	if allNamespaces {
    		return "all namespaces"
    	}
    	return fmt.Sprintf("namespace: %s", selectedNamespace)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/testdata/gen/constFoldGen.go

    					fmt.Fprintf(w, "\ty = %d\n", d)
    					fmt.Fprintf(w, "\tr = x %s y\n", o.symbol)
    					want := ansS(c, d, s.name, o.symbol)
    					fmt.Fprintf(w, "\tif r != %s {\n", want)
    					fmt.Fprintf(w, "\t\tt.Errorf(\"%d %%s %d = %%d, want %s\", %q, r)\n", c, d, want, o.symbol)
    					fmt.Fprintf(w, "\t}\n")
    				}
    			}
    			fmt.Fprintf(w, "}\n")
    		}
    	}
    
    	// Special signed/unsigned cases for shifts
    	for _, ls := range szs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		if err != nil {
    			return err
    		}
    
    		ns := annotateAssembly(insts, sns, s.file)
    
    		fmt.Fprintf(w, "ROUTINE ======================== %s\n", s.sym.Name[0])
    		for _, name := range s.sym.Name[1:] {
    			fmt.Fprintf(w, "    AKA ======================== %s\n", name)
    		}
    		fmt.Fprintf(w, "%10s %10s (flat, cum) %s of Total\n",
    			rpt.formatValue(flatSum), rpt.formatValue(cumSum),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  9. pkg/log/scope.go

    	for k, v := range scopes {
    		s[k] = v
    	}
    
    	return s
    }
    
    // Fatal uses fmt.Sprint to construct and log a message at fatal level.
    func (s *Scope) Fatal(msg any) {
    	if s.GetOutputLevel() >= FatalLevel {
    		s.emit(zapcore.FatalLevel, fmt.Sprint(msg))
    	}
    }
    
    // Fatalf uses fmt.Sprintf to construct and log a message at fatal level.
    func (s *Scope) Fatalf(format string, args ...any) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/syscall/mkasm.go

    		if !trampolines[fn] {
    			trampolines[fn] = true
    			fmt.Fprintf(&out, "TEXT ยท%s_trampoline(SB),NOSPLIT,$0-0\n", fn)
    			if goos == "openbsd" && arch == "ppc64" {
    				fmt.Fprintf(&out, "\tCALL\t%s(SB)\n", fn)
    				fmt.Fprintf(&out, "\tRET\n")
    			} else {
    				fmt.Fprintf(&out, "\tJMP\t%s(SB)\n", fn)
    			}
    		}
    	}
    	err = os.WriteFile(fmt.Sprintf("zsyscall_%s_%s.s", goos, arch), out.Bytes(), 0644)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 03:24:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top