Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,136 for sfprintf (0.2 sec)

  1. internal/logger/console.go

    	if msg == "" {
    		fmt.Fprintln(Output, args...)
    	} else {
    		fmt.Fprintf(Output, msg, args...)
    	}
    }
    
    type errorMsg struct{}
    
    var errorMessage errorMsg
    
    func (i errorMsg) json(msg string, args ...interface{}) {
    	var message string
    	if msg != "" {
    		message = fmt.Sprintf(msg, args...)
    	} else {
    		message = fmt.Sprint(args...)
    	}
    	logJSON, err := json.Marshal(&log.Entry{
    		Level:   ErrorKind,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/output/output.go

    func (tp *TextPrinter) PrintObj(obj runtime.Object, writer io.Writer) error {
    	_, err := fmt.Fprintf(writer, "%+v\n", obj)
    	return err
    }
    
    // Fprintf is a wrapper around fmt.Fprintf
    func (tp *TextPrinter) Fprintf(writer io.Writer, format string, args ...interface{}) (n int, err error) {
    	return fmt.Fprintf(writer, format, args...)
    }
    
    // Fprintln is a wrapper around fmt.Fprintln
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 19 08:22:45 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/doc.go

    // Package printf defines an Analyzer that checks consistency
    // of Printf format strings and arguments.
    //
    // # Analyzer printf
    //
    // printf: check consistency of Printf format strings and arguments
    //
    // The check applies to calls of the formatting functions such as
    // [fmt.Printf] and [fmt.Sprintf], as well as any detected wrappers of
    // those functions such as [log.Printf]. It reports a variety of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/apiclient/wait.go

    		portScheduler = "10259"
    	}
    	urlFormat := "https://127.0.0.1:%s/healthz"
    	return []controlPlaneComponent{
    		{name: "kube-apiserver", url: fmt.Sprintf(urlFormat, portAPIServer)},
    		{name: "kube-controller-manager", url: fmt.Sprintf(urlFormat, portKCM)},
    		{name: "kube-scheduler", url: fmt.Sprintf(urlFormat, portScheduler)},
    	}
    }
    
    // WaitForControlPlaneComponents waits for all control plane components to report "ok" on /healthz
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. 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)
  7. src/runtime/mksizeclasses.go

    	fmt.Fprintf(w, "minHeapAlign = %d\n", minHeapAlign)
    	fmt.Fprintf(w, "_MaxSmallSize = %d\n", maxSmallSize)
    	fmt.Fprintf(w, "smallSizeDiv = %d\n", smallSizeDiv)
    	fmt.Fprintf(w, "smallSizeMax = %d\n", smallSizeMax)
    	fmt.Fprintf(w, "largeSizeDiv = %d\n", largeSizeDiv)
    	fmt.Fprintf(w, "_NumSizeClasses = %d\n", len(classes))
    	fmt.Fprintf(w, "_PageShift = %d\n", pageShift)
    	fmt.Fprintf(w, "maxObjsPerSpan = %d\n", maxObjsPerSpan(classes))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  8. istioctl/pkg/describe/describe.go

    					fmt.Fprintf(writer, "WARNING: User ID (UID) 1337 is reserved for the sidecar proxy.\n")
    				}
    			}
    		}
    	}
    
    	fmt.Fprintf(writer, "Pod: %s\n", kname(pod.ObjectMeta))
    	fmt.Fprintf(writer, "   Pod Revision: %s\n", revision)
    	if len(ports) > 0 {
    		fmt.Fprintf(writer, "   Pod Ports: %s\n", strings.Join(ports, ", "))
    	} else {
    		fmt.Fprintf(writer, "   Pod does not expose ports\n")
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/report/report.go

    		if err != nil {
    			return err
    		}
    
    		ns := annotateAssembly(insts, sns, s.file)
    
    		fmt.Fprintf(w, "ROUTINE ======================== %s\n", s.sym.Name[0])
    		for _, name := range s.sym.Name[1:] {
    			fmt.Fprintf(w, "    AKA ======================== %s\n", name)
    		}
    		fmt.Fprintf(w, "%10s %10s (flat, cum) %s of Total\n",
    			rpt.formatValue(flatSum), rpt.formatValue(cumSum),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  10. src/cmd/trace/main.go

    		divisor = 1 << 10
    	case b < 1<<30:
    		suffix = "MiB"
    		divisor = 1 << 20
    	case b < 1<<40:
    		suffix = "GiB"
    		divisor = 1 << 30
    	}
    	if divisor == 1 {
    		return fmt.Sprintf("%d %s", b, suffix)
    	}
    	return fmt.Sprintf("%.1f %s", float64(b)/float64(divisor), suffix)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top