Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 765 for fprint (0.13 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/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)
  3. 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)
  4. src/cmd/compile/internal/ssa/html.go

    	}
    	var buf strings.Builder
    	fmt.Fprint(&buf, "<div class=\"lines\" style=\"width: 8%\">")
    	filename := ""
    	for _, fl := range all {
    		fmt.Fprint(&buf, "<div>&nbsp;</div>")
    		if filename != fl.Filename {
    			fmt.Fprint(&buf, "<div>&nbsp;</div>")
    			filename = fl.Filename
    		}
    		for i := range fl.Lines {
    			ln := int(fl.StartLineno) + i
    			fmt.Fprintf(&buf, "<div class=\"l%v line-number\">%v</div>", ln, ln)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
  5. src/fmt/example_test.go

    // prints, while Print adds blanks only between non-string arguments and Printf
    // does exactly what it is told.
    // Sprint, Sprintln, Sprintf, Fprint, Fprintln, and Fprintf behave the same as
    // their corresponding Print, Println, and Printf functions shown here.
    func Example_printers() {
    	a, b := 3.0, 4.0
    	h := math.Hypot(a, b)
    
    	// Print inserts blanks between arguments when neither is a string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/phases/addons/dns/dns.go

    	}
    
    	if printManifest {
    		fmt.Fprint(out, "---")
    		fmt.Fprintf(out, "%s", coreDNSDeploymentBytes)
    		fmt.Fprint(out, "---")
    		fmt.Fprintf(out, "%s", coreDNSConfigMapBytes)
    		fmt.Fprint(out, "---")
    		fmt.Fprintf(out, "%s", coreDNSServiceBytes)
    		fmt.Fprint(out, "---")
    		fmt.Fprintf(out, "%s", []byte(CoreDNSClusterRole))
    		fmt.Fprint(out, "---")
    		fmt.Fprintf(out, "%s", []byte(CoreDNSClusterRoleBinding))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. cmd/erasure-metadata.go

    				fmt.Fprintf(h, "%v", meta.Erasure.Distribution)
    			}
    
    			if meta.IsRemote() {
    				// ILM transition fields
    				fmt.Fprint(h, meta.TransitionStatus)
    				fmt.Fprint(h, meta.TransitionTier)
    				fmt.Fprint(h, meta.TransitionedObjName)
    				fmt.Fprint(h, meta.TransitionVersionID)
    			}
    
    			// If metadata says encrypted, ask for it in quorum.
    			if etyp, ok := crypto.IsEncrypted(meta.Metadata); ok {
    				fmt.Fprint(h, etyp)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. src/go/printer/printer.go

    // or assignment-compatible to [ast.Expr], [ast.Decl], [ast.Spec], or [ast.Stmt].
    func (cfg *Config) Fprint(output io.Writer, fset *token.FileSet, node any) error {
    	return cfg.fprint(output, fset, node, make(map[ast.Node]int))
    }
    
    // Fprint "pretty-prints" an AST node to output.
    // It calls [Config.Fprint] with default settings.
    // Note that gofmt uses tabs for indentation but spaces for alignment;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		fmt.Fprintf(w, "switch ")
    		fprint(w, n.Expr)
    		fmt.Fprintf(w, " {\n")
    		for _, n := range n.List {
    			fprint(w, n)
    		}
    		fmt.Fprintf(w, "}\n")
    	case *Case:
    		fmt.Fprintf(w, "case ")
    		fprint(w, n.Expr)
    		fmt.Fprintf(w, ":\n")
    		for _, n := range n.List {
    			fprint(w, n)
    		}
    	case *RuleRewrite:
    		if *addLine {
    			fmt.Fprintf(w, "// %s\n", n.Loc)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    	if m == nil {
    		return "{}"
    	}
    	var buf bytes.Buffer
    	fmt.Fprint(&buf, "{")
    	sep := ""
    	m.Iterate(func(key types.Type, value any) {
    		fmt.Fprint(&buf, sep)
    		sep = ", "
    		fmt.Fprint(&buf, key)
    		if values {
    			fmt.Fprintf(&buf, ": %q", value)
    		}
    	})
    	fmt.Fprint(&buf, "}")
    	return buf.String()
    }
    
    // String returns a string representation of the map's entries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top