Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 175 for fmt (0.09 sec)

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

    //	%S	Short syntax: Name only, no matter what.
    func (s *Sym) Format(f fmt.State, verb rune) {
    	mode := fmtGo
    	switch verb {
    	case 'v', 'S':
    		if verb == 'v' && f.Flag('+') {
    			mode = fmtDebug
    		}
    		fmt.Fprint(f, sconv(s, verb, mode))
    
    	default:
    		fmt.Fprintf(f, "%%!%c(*types.Sym=%p)", verb, s)
    	}
    }
    
    func (s *Sym) String() string {
    	return sconv(s, 0, fmtGo)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/go/internal/test/testflag.go

    	case strings.Contains(value, "="):
    		return fmt.Errorf("-vet argument cannot contain equal signs")
    	case strings.Contains(value, " "):
    		return fmt.Errorf("-vet argument is comma-separated list, cannot contain spaces")
    	}
    
    	*f = vetFlag{explicit: true}
    	var single string
    	for _, arg := range strings.Split(value, ",") {
    		switch arg {
    		case "":
    			return fmt.Errorf("-vet argument contains empty list element")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/stackalloc.go

    				live.add(v.ID)
    			}
    		}
    	}
    	if f.pass.debug > stackDebug {
    		for vid, i := range s.interfere {
    			if len(i) > 0 {
    				fmt.Printf("v%d interferes with", vid)
    				for _, x := range i {
    					fmt.Printf(" v%d", x)
    				}
    				fmt.Println()
    			}
    		}
    	}
    }
    
    func hasAnyArgOp(v *Value) bool {
    	return v.Op == OpArg || v.Op == OpArgIntReg || v.Op == OpArgFloatReg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 21:29:41 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/covdata/tool_test.go

    	if !*preserveTmp {
    		defer os.RemoveAll(topTmpdir)
    	} else {
    		fmt.Fprintf(os.Stderr, "debug: preserving tmpdir %s\n", topTmpdir)
    	}
    	os.Setenv("CMDCOVDATA_TEST_RUN_MAIN", "true")
    	os.Exit(m.Run())
    }
    
    var tdmu sync.Mutex
    var tdcount int
    
    func tempDir(t *testing.T) string {
    	tdmu.Lock()
    	dir := filepath.Join(testTempDir, fmt.Sprintf("%03d", tdcount))
    	tdcount++
    	if err := os.Mkdir(dir, 0777); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/shell.go

    // shorter. This is usually more pleasant. For example, if fmt doesn't compile
    // and we are in src/html, the output is
    //
    //	$ go build
    //	# fmt
    //	../fmt/print.go:1090: undefined: asdf
    //	$
    //
    // instead of
    //
    //	$ go build
    //	# fmt
    //	/usr/gopher/go/src/fmt/print.go:1090: undefined: asdf
    //	$
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/query.go

    		replacement := r.Path
    		if r.Version != "" {
    			replacement = fmt.Sprintf("%s@%s", r.Path, r.Version)
    		}
    		if e.Query == e.Mod.Version {
    			found = fmt.Sprintf(" (replaced by %s)", replacement)
    		} else {
    			found = fmt.Sprintf(" (%s, replaced by %s)", e.Mod.Version, replacement)
    		}
    	} else if e.Query != e.Mod.Version {
    		found = fmt.Sprintf(" (%s)", e.Mod.Version)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 22:29:11 UTC 2023
    - 44.7K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/vendor.go

    		}
    		switch {
    		case isExplicit[m] && goVersion != "":
    			fmt.Fprintf(w, "## explicit; go %s\n", goVersion)
    		case isExplicit[m]:
    			io.WriteString(w, "## explicit\n")
    		case goVersion != "":
    			fmt.Fprintf(w, "## go %s\n", goVersion)
    		}
    
    		pkgs := modpkgs[m]
    		sort.Strings(pkgs)
    		for _, pkg := range pkgs {
    			fmt.Fprintf(w, "%s\n", pkg)
    			vendorPkg(vdir, pkg)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/buildid.go

    		fmt.Fprintf(&buf, "\t"+`.section .go.buildid,#exclude`+"\n")
    	}
    	fmt.Fprintf(&buf, "\t.byte ")
    	for i := 0; i < len(a.buildID); i++ {
    		if i > 0 {
    			if i%8 == 0 {
    				fmt.Fprintf(&buf, "\n\t.byte ")
    			} else {
    				fmt.Fprintf(&buf, ",")
    			}
    		}
    		fmt.Fprintf(&buf, "%#02x", a.buildID[i])
    	}
    	fmt.Fprintf(&buf, "\n")
    	if cfg.Goos != "solaris" && cfg.Goos != "illumos" && cfg.Goos != "aix" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
Back to top