Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 154 for printr (0.4 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/types2/typestring.go

    )
    
    // A Qualifier controls how named package-level objects are printed in
    // calls to [TypeString], [ObjectString], and [SelectionString].
    //
    // These three formatting routines call the Qualifier for each
    // package-level object O, and if the Qualifier returns a non-empty
    // string p, the object is printed in the form p.O.
    // If it returns an empty string, only the object name O is printed.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/initorder.go

    				} else {
    					fmt.Printf("\t%s has no dependencies\n", obj.Name())
    				}
    			}
    		}
    		fmt.Println()
    
    		fmt.Println("Transposed object dependency graph (functions eliminated):")
    		for _, n := range pq {
    			fmt.Printf("\t%s depends on %d nodes\n", n.obj.Name(), n.ndeps)
    			for p := range n.pred {
    				fmt.Printf("\t\t%s is dependent\n", p.obj.Name())
    			}
    		}
    		fmt.Println()
    
    		fmt.Println("Processing nodes:")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/cmd/covdata/covdata.go

    	if *verbflag >= vlevel {
    		fmt.Printf(s, a...)
    		fmt.Printf("\n")
    	}
    }
    
    func warn(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "warning: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    	fmt.Fprintf(os.Stderr, "\n")
    	if *hwflag {
    		panic("unexpected warning")
    	}
    }
    
    func fatal(s string, a ...interface{}) {
    	fmt.Fprintf(os.Stderr, "error: ")
    	fmt.Fprintf(os.Stderr, s, a...)
    	fmt.Fprintf(os.Stderr, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/builtins_test.go

    	{"panic", `panic("foo")`, `func(interface{})`},
    
    	{"print", `print()`, `func()`},
    	{"print", `print(0)`, `func(int)`},
    	{"print", `print(1, 2.0, "foo", true)`, `func(int, float64, string, bool)`},
    
    	{"println", `println()`, `func()`},
    	{"println", `println(0)`, `func(int)`},
    	{"println", `println(1, 2.0, "foo", true)`, `func(int, float64, string, bool)`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/test.go

    			} else {
    				base.Errorf("%s", str)
    			}
    			fmt.Printf("FAIL\t%s [setup failed]\n", p.ImportPath)
    			continue
    		}
    		builds = append(builds, buildTest)
    		runs = append(runs, runTest)
    		prints = append(prints, printTest)
    	}
    
    	// Order runs for coordinating start JSON prints.
    	ch := make(chan struct{})
    	close(ch)
    	for _, a := range runs {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. 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)
  9. doc/go_mem.html

    </p>
    
    <p>
    In this program:
    </p>
    
    <pre>
    var a, b int
    
    func f() {
    	a = 1
    	b = 2
    }
    
    func g() {
    	print(b)
    	print(a)
    }
    
    func main() {
    	go f()
    	g()
    }
    </pre>
    
    <p>
    it can happen that <code>g</code> prints <code>2</code> and then <code>0</code>.
    </p>
    
    <p>
    This fact invalidates a few common idioms.
    </p>
    
    <p>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    	UsageLine: "go env [-json] [-changed] [-u] [-w] [var ...]",
    	Short:     "print Go environment information",
    	Long: `
    Env prints Go environment information.
    
    By default env prints information as a shell script
    (on Windows, a batch file). If one or more variable
    names is given as arguments, env prints the value of
    each named variable on its own line.
    
    The -json flag prints the environment in JSON format
    instead of as a shell script.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top