- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 2,344 for print_ (0.32 sec)
-
cmd/kubeadm/app/cmd/config.go
kinds := []string{} cmd := &cobra.Command{ Use: fmt.Sprintf("%s-defaults", action), Short: fmt.Sprintf("Print default %s configuration, that can be used for 'kubeadm %s'", action, action), Long: fmt.Sprintf(dedent.Dedent(` This command prints objects such as the default %s configuration that is used for 'kubeadm %s'.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 06:58:01 UTC 2024 - 18.9K bytes - Viewed (0) -
test/fibo.go
func test(half, opt bool) { for _, test := range tests { got := fibo(test.n, half, opt).String() if got != test.want { fmt.Printf("error: got std fibo(%d) = %s; want %s\n", test.n, got, test.want) os.Exit(1) } } } func selfTest() { if W != 32 && W != 64 { fmt.Printf("error: unexpected wordsize %d", W) os.Exit(1) } for i := 0; i < 4; i++ { test(i&2 == 0, i&1 != 0) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 08 22:22:58 UTC 2014 - 6.3K bytes - Viewed (0) -
src/net/http/triv.go
case "POST": var buf strings.Builder io.Copy(&buf, req.Body) body := buf.String() if n, err := strconv.Atoi(body); err != nil { fmt.Fprintf(w, "bad POST: %v\nbody: [%v]\n", err, body) } else { ctr.n = n fmt.Fprint(w, "counter reset\n") } } fmt.Fprintf(w, "counter = %d\n", ctr.n) } // simple flag server var booleanflag = flag.Bool("boolean", true, "another flag for testing")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/hg.go
return } var wg sync.WaitGroup defer func() { cancel() err := cmd.Wait() if out := strings.TrimSuffix(stderr.String(), "interrupted!\n"); out != "" { logger.Printf("%v: %v\n%s", cmd, err, out) } else { logger.Printf("%v", cmd) } wg.Wait() }() r := bufio.NewReader(stdout) line, err := r.ReadString('\n') if err != nil { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 02:52:19 UTC 2023 - 3.3K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
} return cmp.Compare(a.Name, b.Name) }) fmt.Fprintln(w, "NAMESPACE\tPOLICY NAME\tACTION\tSCOPE") for _, pol := range pols { fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", pol.Namespace, pol.Name, pol.Action, pol.Scope) } return w.Flush() } // PrintPolicyDump prints the relevant services in the config dump to the ConfigWriter stdout func (c *ConfigWriter) PrintPolicyDump(filter PolicyFilter, outputFormat string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
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) -
src/io/example_test.go
if _, err := io.Copy(w, r); err != nil { log.Fatal(err) } fmt.Print(buf1.String()) fmt.Print(buf2.String()) // Output: // some io.Reader stream to be read // some io.Reader stream to be read } func ExamplePipe() { r, w := io.Pipe() go func() { fmt.Fprint(w, "some io.Reader stream to be read\n") w.Close() }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:49:32 UTC 2022 - 5.5K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
if len(svc.Addresses) > 0 { _, ip, _ = strings.Cut(svc.Addresses[0], "/") } waypoint := serviceWaypointName(svc, zDump.Services) fmt.Fprintf(w, "%v\t%v\t%v\t%v\n", svc.Namespace, svc.Name, ip, waypoint) } return w.Flush() } // PrintServiceDump prints the relevant services in the config dump to the ConfigWriter stdout func (c *ConfigWriter) PrintServiceDump(filter ServiceFilter, outputFormat string) error {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.7K bytes - Viewed (0) -
test/fixedbugs/issue4909b.go
// such that T(n) embeds T(2n) and *T(2n+1). func main() { fmt.Printf("// errorcheck\n\n") fmt.Printf("package p\n\n") fmt.Println(`import "unsafe"`) // Dump types. for n := 1; n < 256; n++ { writeStruct(n) } // Dump leaves for n := 256; n < 512; n++ { fmt.Printf("type T%d int\n", n) } fmt.Printf("var t T1\n") fmt.Printf("var p *T1\n") // Simple selectors for n := 2; n < 256; n++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 19 06:26:35 UTC 2021 - 1.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
// license that can be found in the LICENSE file. package printf import ( "fmt" "go/ast" "go/types" "golang.org/x/tools/go/analysis" "golang.org/x/tools/internal/aliases" "golang.org/x/tools/internal/typeparams" ) var errorType = types.Universe.Lookup("error").Type().Underlying().(*types.Interface) // matchArgType reports an error if printf verb t is not appropriate for // operand arg. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0)