- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 2,159 for fprint (0.13 sec)
-
pkg/test/framework/components/cluster/kube/cluster.go
func (c *Cluster) OverrideTopology(fn func(cluster.Topology) cluster.Topology) { c.Topology = fn(c.Topology) } func (c *Cluster) String() string { buf := &bytes.Buffer{} _, _ = fmt.Fprint(buf, c.Topology.String()) _, _ = fmt.Fprintf(buf, "Filename: %s\n", c.filename) return buf.String() } // Filename of the kubeconfig file for this cluster.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 17 22:54:10 UTC 2022 - 2.5K bytes - Viewed (0) -
src/go/format/format.go
// Sort imports if necessary. if file != nil && hasUnsortedImports(file) { // Make a copy of the AST because ast.SortImports is destructive. // TODO(gri) Do this more efficiently. var buf bytes.Buffer err := config.Fprint(&buf, fset, file) if err != nil { return err } file, err = parser.ParseFile(fset, "", buf.Bytes(), parserMode) if err != nil { // We should never get here. If we do, provide good diagnostic.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 4.3K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/proxy/proxy.go
return err } fmt.Fprintln(out, "---") fmt.Fprintf(out, "%s", saBytes) fmt.Fprintln(out, "---") fmt.Fprintf(out, "%s", crbBytes) fmt.Fprintln(out, "---") fmt.Fprintf(out, "%s", roleBytes) fmt.Fprintln(out, "---") fmt.Fprintf(out, "%s", roleBindingBytes) fmt.Fprint(out, "---") fmt.Fprintf(out, "%s", cmByte) fmt.Fprint(out, "---") fmt.Fprintf(out, "%s", dsByte) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 26 13:23:44 UTC 2023 - 8.1K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
fmt.Fprintf(w, "switch ") fprint(w, n.Expr) fmt.Fprintf(w, " {\n") for _, n := range n.List { fprint(w, n) } fmt.Fprintf(w, "}\n") case *Case: fmt.Fprintf(w, "case ") fprint(w, n.Expr) fmt.Fprintf(w, ":\n") for _, n := range n.List { fprint(w, n) } case *RuleRewrite: if *addLine { fmt.Fprintf(w, "// %s\n", n.Loc) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/cmd/gofmt/internal.go
sourceAdj func(src []byte, indent int) []byte, indentAdj int, src []byte, cfg printer.Config, ) ([]byte, error) { if sourceAdj == nil { // Complete source file. var buf bytes.Buffer err := cfg.Fprint(&buf, fset, file) if err != nil { return nil, err } return buf.Bytes(), nil } // Partial source file. // Determine and prepend leading space. i, j := 0, 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 28 14:23:08 UTC 2020 - 5K bytes - Viewed (0) -
src/go/format/internal.go
sourceAdj func(src []byte, indent int) []byte, indentAdj int, src []byte, cfg printer.Config, ) ([]byte, error) { if sourceAdj == nil { // Complete source file. var buf bytes.Buffer err := cfg.Fprint(&buf, fset, file) if err != nil { return nil, err } return buf.Bytes(), nil } // Partial source file. // Determine and prepend leading space. i, j := 0, 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 28 14:23:08 UTC 2020 - 5K bytes - Viewed (0) -
src/cmd/nm/nm.go
name := e.Name() if name == "" { fmt.Fprintf(w, "%s(%s):\t", file, "_go_.o") } else { fmt.Fprintf(w, "%s(%s):\t", file, name) } } else if filePrefix { fmt.Fprintf(w, "%s:\t", file) } if sym.Code == 'U' { fmt.Fprintf(w, "%8s", "") } else { fmt.Fprintf(w, "%8x", sym.Addr) } if *printSize { fmt.Fprintf(w, " %10d", sym.Size) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 3.1K bytes - Viewed (0) -
security/pkg/credentialfetcher/plugin/mock.go
func (ms *MetadataServer) getToken(w http.ResponseWriter, req *http.Request) { ms.mutex.Lock() defer ms.mutex.Unlock() ms.numGetTokenCall++ token := fmt.Sprintf("%s%d", fakeTokenPrefix, ms.numGetTokenCall) if ms.credential != "" { token = ms.credential } fmt.Fprint(w, token) } func (ms *MetadataServer) Stop() { ms.server.Close()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 3K bytes - Viewed (0) -
src/os/exec/exec_windows_test.go
} func cmdPipeHandle(args ...string) { handle, _ := strconv.ParseUint(args[0], 16, 64) pipe := os.NewFile(uintptr(handle), "") _, err := fmt.Fprint(pipe, args[1]) if err != nil { fmt.Fprintf(os.Stderr, "writing to pipe failed: %v\n", err) os.Exit(1) } pipe.Close() } func TestPipePassing(t *testing.T) { t.Parallel() r, w, err := os.Pipe() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 21 23:07:55 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go
if m == nil { return "{}" } var buf bytes.Buffer fmt.Fprint(&buf, "{") sep := "" m.Iterate(func(key types.Type, value any) { fmt.Fprint(&buf, sep) sep = ", " fmt.Fprint(&buf, key) if values { fmt.Fprintf(&buf, ": %q", value) } }) fmt.Fprint(&buf, "}") return buf.String() } // String returns a string representation of the map's entries.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.9K bytes - Viewed (0)