Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,159 for fprint (0.12 sec)

  1. src/cmd/compile/internal/ir/fmt.go

    		fmt.Fprint(s, "[")
    		if n.Low != nil {
    			fmt.Fprint(s, n.Low)
    		}
    		fmt.Fprint(s, ":")
    		if n.High != nil {
    			fmt.Fprint(s, n.High)
    		}
    		if n.Op().IsSlice3() {
    			fmt.Fprint(s, ":")
    			if n.Max != nil {
    				fmt.Fprint(s, n.Max)
    			}
    		}
    		fmt.Fprint(s, "]")
    
    	case OSLICEHEADER:
    		n := n.(*SliceHeaderExpr)
    		fmt.Fprintf(s, "sliceheader{%v,%v,%v}", n.Ptr, n.Len, n.Cap)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/cmd/cgo/out.go

    			fmt.Fprint(fgo2, "\tif e != 0 {\n")
    			fmt.Fprint(fgo2, "\t\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "e\n")
    			fmt.Fprint(fgo2, "\t}\n")
    			fmt.Fprint(fgo2, "\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "nil\n")
    		} else if !void {
    			fmt.Fprint(fgo2, "\treturn r\n")
    		}
    
    		fmt.Fprint(fgo2, "}\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/go/printer/printer_test.go

    	}
    
    	cfg := &Config{
    		Mode:     SourcePos, // emit line comments
    		Tabwidth: 8,
    	}
    	var buf bytes.Buffer
    	if err := cfg.Fprint(&buf, fset, f); err == nil {
    		t.Errorf("Fprint did not error for source file path containing newline")
    	}
    	if buf.Len() != 0 {
    		t.Errorf("unexpected Fprint output:\n%s", buf.Bytes())
    	}
    }
    
    // TestEmptyDecl tests that empty decls for const, var, import are printed with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

    					}
    					WriteEscaped(output, print)
    					if truncated {
    						fmt.Fprint(output, "...")
    					}
    				default:
    					WriteEscaped(output, fmt.Sprint(val))
    				}
    			}
    		}
    		fmt.Fprintln(output)
    	}
    	return nil
    }
    
    type cellValueFunc func(metav1.TableRow) (interface{}, error)
    
    type columnAddPosition int
    
    const (
    	beginning columnAddPosition = 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 16.7K bytes
    - Viewed (0)
Back to top