Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 524 for printr (0.88 sec)

  1. src/cmd/vendor/golang.org/x/mod/modfile/print.go

    	}
    	return b
    }
    
    // A printer collects the state during printing of a file or expression.
    type printer struct {
    	bytes.Buffer           // output buffer
    	comment      []Comment // pending end-of-line comments
    	margin       int       // left margin (indent), a number of tabs
    }
    
    // printf prints to the buffer.
    func (p *printer) printf(format string, args ...interface{}) {
    	fmt.Fprintf(p, format, args...)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 00:48:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/print/print.go

    	fmt.Printf("%v", &stringerv)
    	fmt.Printf("%T", &stringerv)
    	fmt.Printf("%s", &embeddedStringerv)
    	fmt.Printf("%v", &embeddedStringerv)
    	fmt.Printf("%T", &embeddedStringerv)
    	fmt.Printf("%v", notstringerv)
    	fmt.Printf("%T", notstringerv)
    	fmt.Printf("%q", stringerarrayv)
    	fmt.Printf("%v", stringerarrayv)
    	fmt.Printf("%s", stringerarrayv)
    	fmt.Printf("%v", notstringerarrayv)
    	fmt.Printf("%T", notstringerarrayv)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/fmt.go

    			break
    		}
    
    		fmt.Fprint(s, "for")
    		if n.DistinctVars {
    			fmt.Fprint(s, " /* distinct */")
    		}
    		if simpleinit {
    			fmt.Fprintf(s, " %v;", n.Init()[0])
    		} else if n.Post != nil {
    			fmt.Fprint(s, " ;")
    		}
    
    		if n.Cond != nil {
    			fmt.Fprintf(s, " %v", n.Cond)
    		}
    
    		if n.Post != nil {
    			fmt.Fprintf(s, "; %v", n.Post)
    		} else if simpleinit {
    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/doc/pkg.go

    		}
    	}
    	return true
    }
    
    // valueDoc prints the docs for a constant or variable. The printed map records
    // which values have been printed already to avoid duplication. Otherwise, a
    // declaration like:
    //
    //	const ( c = 1; C = 2 )
    //
    // … could be printed twice if the -u flag is set, as it matches twice.
    func (pkg *Package) valueDoc(value *doc.Value, printed map[*ast.GenDecl]bool) {
    	if printed[value.Decl] {
    		return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  5. src/cmd/fix/main.go

    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n")
    	flag.PrintDefaults()
    	fmt.Fprintf(os.Stderr, "\nAvailable rewrites are:\n")
    	sort.Sort(byName(fixes))
    	for _, f := range fixes {
    		if f.disabled {
    			fmt.Fprintf(os.Stderr, "\n%s (disabled)\n", f.name)
    		} else {
    			fmt.Fprintf(os.Stderr, "\n%s\n", f.name)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    	flag.Var(&value, name, usage)
    	return &value
    }
    
    // triState implements flag.Value, flag.Getter, and flag.boolFlag.
    // They work like boolean flags: we can say vet -printf as well as vet -printf=true
    func (ts *triState) Get() interface{} {
    	return *ts == setTrue
    }
    
    func (ts triState) isTrue() bool {
    	return ts == setTrue
    }
    
    func (ts *triState) Set(value string) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/printer.go

    		p.print(newline)
    		for i, c := range list {
    			p.printCommClause(c, i+1 == len(list))
    			p.print(newline)
    		}
    	}
    	p.print(_Rbrace)
    }
    
    func (p *printer) printCaseClause(c *CaseClause, braces bool) {
    	if c.Cases != nil {
    		p.print(_Case, blank, c.Cases)
    	} else {
    		p.print(_Default)
    	}
    	p.print(_Colon)
    	if len(c.Body) > 0 {
    		p.print(newline, indent)
    		p.printStmtList(c.Body, braces)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  8. src/cmd/go/internal/version/version.go

    )
    
    var CmdVersion = &base.Command{
    	UsageLine: "go version [-m] [-v] [file ...]",
    	Short:     "print Go version",
    	Long: `Version prints the build information for Go binary files.
    
    Go version reports the Go version used to build each of the named files.
    
    If no files are named on the command line, go version prints its own
    version information.
    
    If a directory is named, go version walks that directory, recursively,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/util.go

    			fmt.Fprintf(w, "$%d", a.Offset)
    		} else {
    			fmt.Fprintf(w, "$%d-%d", a.Offset, a.Val.(int32))
    		}
    
    	case TYPE_FCONST:
    		str := fmt.Sprintf("%.17g", a.Val.(float64))
    		// Make sure 1 prints as 1.0
    		if !strings.ContainsAny(str, ".e") {
    			str += ".0"
    		}
    		fmt.Fprintf(w, "$(%s)", str)
    
    	case TYPE_SCONST:
    		fmt.Fprintf(w, "$%q", a.Val.(string))
    
    	case TYPE_ADDR:
    		io.WriteString(w, "$")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/tool/tool.go

    	}
    	if err != nil {
    		// Only print about the exit status if the command
    		// didn't even run (not an ExitError) or it didn't exit cleanly
    		// or we're printing command lines too (-x mode).
    		// Assume if command exited cleanly (even with non-zero status)
    		// it printed any messages it wanted to print.
    		if e, ok := err.(*exec.ExitError); !ok || !e.Exited() || cfg.BuildX {
    			fmt.Fprintf(os.Stderr, "go tool %s: %s\n", toolName, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 18:02:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top