Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,114 for qprint (0.13 sec)

  1. test/rotate.go

    	"strings"
    )
    
    func main() {
    	flag.Parse()
    
    	b := bufio.NewWriter(os.Stdout)
    	defer b.Flush()
    
    	fmt.Fprintf(b, "%s\n", prolog)
    
    	for logBits := uint(3); logBits <= 6; logBits++ {
    		typ := fmt.Sprintf("int%d", 1<<logBits)
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", typ, -1))
    		fmt.Fprint(b, strings.Replace(checkFunc, "XXX", "u"+typ, -1))
    		gentest(b, 1<<logBits, mode&1 != 0, mode&2 != 0)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 3.3K bytes
    - Viewed (0)
  2. src/go/printer/printer.go

    	printerPool.Put(p)
    }
    
    // fprint implements Fprint and takes a nodesSizes map for setting up the printer state.
    func (cfg *Config) fprint(output io.Writer, fset *token.FileSet, node any, nodeSizes map[ast.Node]int) (err error) {
    	// print node
    	p := newPrinter(cfg, fset, nodeSizes)
    	defer p.free()
    	if err = p.printNode(node); err != nil {
    		return
    	}
    	// print outstanding comments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 41.6K bytes
    - Viewed (0)
  3. src/net/http/routing_tree_test.go

    				t.Errorf("got %s, want %s", got, test.want)
    			}
    		})
    	}
    }
    
    func (n *routingNode) print(w io.Writer, level int) {
    	indent := strings.Repeat("    ", level)
    	if n.pattern != nil {
    		fmt.Fprintf(w, "%s%q\n", indent, n.pattern)
    	}
    	if n.emptyChild != nil {
    		fmt.Fprintf(w, "%s%q:\n", indent, "")
    		n.emptyChild.print(w, level+1)
    	}
    
    	var keys []string
    	n.children.eachPair(func(k string, _ *routingNode) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. src/os/executable_test.go

    	before, err := os.Executable()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "failed to read executable name before deletion: %v\n", err)
    		os.Exit(1)
    	}
    
    	err = os.Remove(before)
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "failed to remove executable: %v\n", err)
    		os.Exit(1)
    	}
    
    	after, err := os.Executable()
    	if err != nil {
    		fmt.Fprintf(os.Stderr, "failed to read executable name after deletion: %v\n", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  5. src/encoding/gob/encgen.go

    		log.Fatal("usage: encgen [--output filename]")
    	}
    	var b bytes.Buffer
    	fmt.Fprintf(&b, "// Code generated by go run encgen.go -output %s; DO NOT EDIT.\n", *output)
    	fmt.Fprint(&b, header)
    	printMaps(&b, "Array")
    	fmt.Fprint(&b, "\n")
    	printMaps(&b, "Slice")
    	for _, t := range types {
    		fmt.Fprintf(&b, arrayHelper, t.lower, t.upper)
    		fmt.Fprintf(&b, sliceHelper, t.lower, t.upper, t.zero, t.encoder)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:39:09 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/test.go

    		}
    		addTestVet(b, p, run, nil)
    		print := &work.Action{
    			Mode:       "test print",
    			Actor:      work.ActorFunc(builderPrintTest),
    			Deps:       []*work.Action{run},
    			Package:    p,
    			IgnoreFail: true, // print even if test failed
    		}
    		return build, run, print, nil
    	}
    
    	// Build Package structs describing:
    	//	pmain - pkg.test binary
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  7. src/encoding/gob/decgen.go

    	}
    	var b bytes.Buffer
    	fmt.Fprintf(&b, "// Code generated by go run decgen.go -output %s; DO NOT EDIT.\n", *output)
    	fmt.Fprint(&b, header)
    	printMaps(&b, "Array")
    	fmt.Fprint(&b, "\n")
    	printMaps(&b, "Slice")
    	for _, t := range types {
    		fmt.Fprintf(&b, arrayHelper, t.lower, t.upper)
    		fmt.Fprintf(&b, sliceHelper, t.lower, t.upper, t.decoder)
    	}
    	fmt.Fprintf(&b, trailer)
    	source, err := format.Source(b.Bytes())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 14:15:38 UTC 2024
    - 5.3K 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. 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)
  10. src/cmd/internal/objfile/disasm.go

    			} else {
    				// Print instruction as 32-bit words.
    				for j := uint64(0); j < size; j += 4 {
    					if j > 0 {
    						fmt.Fprintf(tw, " ")
    					}
    					fmt.Fprintf(tw, "%08x", d.byteOrder.Uint32(code[i+j:]))
    				}
    			}
    			fmt.Fprintf(tw, "\t%s\t\n", text)
    		})
    		tw.Flush()
    	}
    	bw.Flush()
    }
    
    // Decode disassembles the text segment range [start, end), calling f for each instruction.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 10.5K bytes
    - Viewed (0)
Back to top