- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,209 for fprint (0.14 sec)
-
src/cmd/compile/internal/ssa/print.go
linenumber = fmt.Sprintf("(%s%d) ", pfx, p.Line()) } return linenumber } func (p stringFuncPrinter) value(v *Value, live bool) { if !p.printDead && !live { return } fmt.Fprintf(p.w, " %s", StmtString(v.Pos)) fmt.Fprint(p.w, v.LongString()) if !live { fmt.Fprint(p.w, " DEAD") } fmt.Fprintln(p.w) } func (p stringFuncPrinter) startDepCycle() { fmt.Fprintln(p.w, "dependency cycle!") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 3.9K bytes - Viewed (0) -
src/go/ast/print.go
} }() // print x if x == nil { p.printf("nil\n") return } p.print(reflect.ValueOf(x)) p.printf("\n") return } // Print prints x to standard output, skipping nil fields. // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter). func Print(fset *token.FileSet, x any) error { return Fprint(os.Stdout, fset, x, NotNilFilter) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/test/fakes/gce_metadata_server/main.go
r.HandleFunc(projNumberPath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, projNumber) }).Methods("GET") r.HandleFunc(instIDPath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, instID) }).Methods("GET") r.HandleFunc(instancePath, func(w http.ResponseWriter, r *http.Request) { fmt.Fprint(w, instance) }).Methods("GET")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 3.8K bytes - Viewed (0) -
src/net/http/triv.go
case "POST": var buf strings.Builder io.Copy(&buf, req.Body) body := buf.String() if n, err := strconv.Atoi(body); err != nil { fmt.Fprintf(w, "bad POST: %v\nbody: [%v]\n", err, body) } else { ctr.n = n fmt.Fprint(w, "counter reset\n") } } fmt.Fprintf(w, "counter = %d\n", ctr.n) } // simple flag server var booleanflag = flag.Bool("boolean", true, "another flag for testing")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/options.go
} func (ui *stdUI) ReadLine(prompt string) (string, error) { os.Stdout.WriteString(prompt) return ui.r.ReadString('\n') } func (ui *stdUI) Print(args ...interface{}) { ui.fprint(os.Stderr, args) } func (ui *stdUI) PrintErr(args ...interface{}) { ui.fprint(os.Stderr, args) } func (ui *stdUI) IsTerminal() bool { return false } func (ui *stdUI) WantBrowser() bool { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 07 12:27:21 UTC 2018 - 2.3K bytes - Viewed (0) -
src/cmd/internal/dwarf/putvarabbrevgen_test.go
} buf := new(bytes.Buffer) fmt.Fprint(buf, `// Code generated by TestPutVarAbbrevGenerator. DO NOT EDIT. // Regenerate using go test -run TestPutVarAbbrevGenerator -generate instead. package dwarf var putvarAbbrevs = []dwAbbrev{ `) for _, abbrev := range abbrevslice { fmt.Fprint(buf, abbrev+",\n") } fmt.Fprint(buf, "\n}\n\n") fmt.Fprint(buf, "func putAbstractVarAbbrev(v *Var) int {\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:45:07 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go
func main() { w := new(bytes.Buffer) fmt.Fprintf(w, "// Code generated by gen/arithBoundaryGen.go. DO NOT EDIT.\n\n") fmt.Fprintf(w, "package main;\n") fmt.Fprintf(w, "import \"testing\"\n") for _, sz := range []int{64, 32, 16, 8} { fmt.Fprintf(w, "type utd%d struct {\n", sz) fmt.Fprintf(w, " a,b uint%d\n", sz) fmt.Fprintf(w, " add,sub,mul,div,mod uint%d\n", sz) fmt.Fprintf(w, "}\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 20 02:13:02 UTC 2022 - 5.5K bytes - Viewed (0) -
src/go/ast/print_test.go
i++ } } return strings.Join(lines[0:i], "\n") } func TestPrint(t *testing.T) { var buf strings.Builder for _, test := range tests { buf.Reset() if err := Fprint(&buf, nil, test.x, nil); err != nil { t.Errorf("Fprint failed: %s", err) } if s, ts := trim(buf.String()), trim(test.s); s != ts { t.Errorf("got:\n%s\nexpected:\n%s\n", s, ts) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:35:30 UTC 2022 - 1.8K bytes - Viewed (0) -
src/go/printer/example_test.go
// file set fset. funcAST, fset := parseFunc("example_test.go", "printSelf") // Print the function body into buffer buf. // The file set is provided to the printer so that it knows // about the original source formatting and can add additional // line breaks where they were present in the source. var buf bytes.Buffer printer.Fprint(&buf, fset, funcAST.Body) // Remove braces {} enclosing the function body, unindent,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:55:02 UTC 2022 - 1.7K bytes - Viewed (0) -
src/runtime/mksizeclasses.go
fmt.Fprintf(w, "_MaxSmallSize = %d\n", maxSmallSize) fmt.Fprintf(w, "smallSizeDiv = %d\n", smallSizeDiv) fmt.Fprintf(w, "smallSizeMax = %d\n", smallSizeMax) fmt.Fprintf(w, "largeSizeDiv = %d\n", largeSizeDiv) fmt.Fprintf(w, "_NumSizeClasses = %d\n", len(classes)) fmt.Fprintf(w, "_PageShift = %d\n", pageShift) fmt.Fprintf(w, "maxObjsPerSpan = %d\n", maxObjsPerSpan(classes)) fmt.Fprintln(w, ")")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:31:27 UTC 2024 - 9.6K bytes - Viewed (0)