Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 2,159 for fprint (0.36 sec)

  1. src/text/template/exec.go

    // the template.
    func (s *state) printValue(n parse.Node, v reflect.Value) {
    	s.at(n)
    	iface, ok := printableValue(v)
    	if !ok {
    		s.errorf("can't print %s of type %s", n, v.Type())
    	}
    	_, err := fmt.Fprint(s.wr, iface)
    	if err != nil {
    		s.writeError(err)
    	}
    }
    
    // printableValue returns the, possibly indirected, interface value inside v that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/compile.go

    		for key := range f.ruleMatches {
    			keys = append(keys, key)
    		}
    		sort.Strings(keys)
    		buf := new(strings.Builder)
    		fmt.Fprintf(buf, "%s: ", f.Name)
    		for _, key := range keys {
    			fmt.Fprintf(buf, "%s=%d ", key, f.ruleMatches[key])
    		}
    		fmt.Fprint(buf, "\n")
    		fmt.Print(buf.String())
    	}
    
    	// Squash error printing defer
    	phaseName = ""
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/shell.go

    //
    // Shell will internally serialize calls to the print function.
    // If print is nil, it defaults to printing to stderr.
    func NewShell(workDir string, print func(a ...any) (int, error)) *Shell {
    	if print == nil {
    		print = func(a ...any) (int, error) {
    			return fmt.Fprint(os.Stderr, a...)
    		}
    	}
    	shared := &shellShared{
    		workDir:   workDir,
    		printFunc: print,
    	}
    	return &Shell{shellShared: shared}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/load.go

    	}
    
    	var buf strings.Builder
    	for i := len(stack) - 1; i >= 0; i-- {
    		p := stack[i]
    		fmt.Fprint(&buf, p.path)
    		if p.testOf != nil {
    			fmt.Fprint(&buf, ".test")
    		}
    		if i > 0 {
    			if stack[i-1].testOf == p {
    				fmt.Fprint(&buf, " tested by\n\t")
    			} else {
    				fmt.Fprint(&buf, " imports\n\t")
    			}
    		}
    	}
    	return buf.String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api.go

    // filename:line:column: message
    func (err Error) Error() string {
    	return fmt.Sprintf("%s: %s", err.Pos, err.Msg)
    }
    
    // FullError returns an error string like Error, buy it may contain
    // type-checker internal details such as subscript indices for type
    // parameters and more. Useful for debugging.
    func (err Error) FullError() string {
    	return fmt.Sprintf("%s: %s", err.Pos, err.Full)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. istioctl/pkg/dashboard/dashboard.go

    		defer signal.Stop(signals)
    		<-signals
    		fw.Close()
    	}()
    }
    
    func openBrowser(url string, writer io.Writer, browser bool) {
    	var err error
    
    	fmt.Fprintf(writer, "%s\n", url)
    
    	if !browser {
    		fmt.Fprint(writer, "skipping opening a browser")
    		return
    	}
    
    	switch runtime.GOOS {
    	case "linux":
    		err = exec.Command("xdg-open", url).Start()
    	case "windows":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  7. src/go/types/check.go

    		}
    		defer atomic.AddInt32(&_aliasAny, 1)
    	}
    
    	print := func(msg string) {
    		if check.conf._Trace {
    			fmt.Println()
    			fmt.Println(msg)
    		}
    	}
    
    	print("== initFiles ==")
    	check.initFiles(files)
    
    	print("== collectObjects ==")
    	check.collectObjects()
    
    	print("== packageObjects ==")
    	check.packageObjects()
    
    	print("== processDelayed ==")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/objfile.go

    	ver := ""
    	if ctxt.Debugasm > 1 {
    		ver = fmt.Sprintf("<%d>", s.ABI())
    		if ctxt.Debugasm > 2 {
    			ver += fmt.Sprintf("<idx %d %d>", s.PkgIdx, s.SymIdx)
    		}
    	}
    	fmt.Fprintf(ctxt.Bso, "%s%s ", name, ver)
    	if s.Type != 0 {
    		fmt.Fprintf(ctxt.Bso, "%v ", s.Type)
    	}
    	if s.Static() {
    		fmt.Fprint(ctxt.Bso, "static ")
    	}
    	if s.DuplicateOK() {
    		fmt.Fprintf(ctxt.Bso, "dupok ")
    	}
    	if s.CFunc() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/runtime/pprof/pprof.go

    	fmt.Fprintf(w, "# HeapSys = %d\n", s.HeapSys)
    	fmt.Fprintf(w, "# HeapIdle = %d\n", s.HeapIdle)
    	fmt.Fprintf(w, "# HeapInuse = %d\n", s.HeapInuse)
    	fmt.Fprintf(w, "# HeapReleased = %d\n", s.HeapReleased)
    	fmt.Fprintf(w, "# HeapObjects = %d\n", s.HeapObjects)
    
    	fmt.Fprintf(w, "# Stack = %d / %d\n", s.StackInuse, s.StackSys)
    	fmt.Fprintf(w, "# MSpan = %d / %d\n", s.MSpanInuse, s.MSpanSys)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. test/64bit.go

    		fmt.Fprintf(bout, binaryConstL, "Uint64", i, "uint64", "uint64", a, "uint64")
    		if a.hi == 0 && a.lo == 0 {
    			fmt.Fprintf(bout, binaryConstR0, "Uint64", i, "uint64", "uint64", a, "uint64")
    		} else {
    			fmt.Fprintf(bout, binaryConstR, "Uint64", i, "uint64", "uint64", a, "uint64")
    		}
    		fmt.Fprintf(bout, shiftConstL, "Uint64", i, "uint64", "uint64", a, "uint64")
    	}
    	for i, a := range shiftValues {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 30 19:21:08 UTC 2013
    - 24.8K bytes
    - Viewed (0)
Back to top