- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 209 for printnl (0.05 sec)
-
src/bufio/example_test.go
reader := strings.NewReader(data) n, err := writer.ReadFrom(reader) if err != nil { fmt.Println("ReadFrom Error:", err) return } if err = writer.Flush(); err != nil { fmt.Println("Flush Error:", err) return } fmt.Println("Bytes written:", n) fmt.Println("Buffer contents:", buf.String()) // Output: // Bytes written: 41 // Buffer contents: Hello, world!
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer.go
} return err } // printDiffsTabular prints the secret in table format func (w *sdsWriter) printDiffsTabular(statuses []SecretItemDiff) error { if len(statuses) == 0 { fmt.Fprintln(w.w, "No secrets found to diff.") return nil } tw := new(tabwriter.Writer).Init(w.w, 0, 5, 5, ' ', 0) fmt.Fprintln(tw, strings.Join(secretDiffColumns, "\t")) for _, status := range statuses {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 4.8K bytes - Viewed (0) -
istioctl/pkg/writer/pilot/status.go
routeStatus string endpointStatus string extensionconfigStatus string } const ignoredStatus = "IGNORED" // PrintAll takes a slice of Istiod syncz responses and outputs them using a tabwriter func (s *XdsStatusWriter) PrintAll(statuses map[string]*discovery.DiscoveryResponse) error { w, fullStatus, err := s.setupStatusPrint(statuses) if err != nil { return err }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jun 21 22:47:20 UTC 2024 - 6.5K bytes - Viewed (0) -
src/bytes/example_test.go
fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "去是伟大的.")) fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "")) fmt.Println(bytes.ContainsAny([]byte(""), "")) // Output: // true // true // false // false } func ExampleContainsRune() { fmt.Println(bytes.ContainsRune([]byte("I like seafood."), 'f')) fmt.Println(bytes.ContainsRune([]byte("I like seafood."), 'ö'))
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Aug 07 17:22:36 UTC 2024 - 14.9K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { return r } if r := cmp.Compare(a.Name, b.Name); r != 0 { return r } return cmp.Compare(a.Hostname, b.Hostname) }) fmt.Fprintln(w, "NAMESPACE\tSERVICE NAME\tSERVICE VIP\tWAYPOINT\tENDPOINTS") for _, svc := range svcs { ips := []string{} for _, addr := range svc.Addresses { _, ip, _ := strings.Cut(addr, "/") ips = append(ips, ip)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 24 09:07:30 UTC 2024 - 3.2K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
Aliases: []string{"es"}, Args: func(cmd *cobra.Command, args []string) error { if len(args) != 1 && (labelSelector == "") { cmd.Println(cmd.UsageString()) return fmt.Errorf("stats requires pod name or label selector") } if len(args) == 1 && (labelSelector != "") { cmd.Println(cmd.UsageString()) return fmt.Errorf("name cannot be provided when the label selector is specified") } return nil },
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/policies.go
return r } 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
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0) -
tests/tests_test.go
// ALTER SERVER ROLE sysadmin ADD MEMBER [gorm]; // GO log.Println("testing sqlserver...") if dbDSN == "" { dbDSN = sqlserverDSN } db, err = gorm.Open(sqlserver.Open(dbDSN), cfg) case "tidb": log.Println("testing tidb...") if dbDSN == "" { dbDSN = tidbDSN } db, err = gorm.Open(mysql.Open(dbDSN), cfg) default: log.Println("testing sqlite3...")
Registered: Sun Nov 03 09:35:10 UTC 2024 - Last Modified: Mon Sep 30 03:21:19 UTC 2024 - 3.3K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/route.go
func (c *ConfigWriter) PrintRouteSummary(filter RouteFilter) error { w, routes, err := c.setupRouteConfigWriter() if err != nil { return err } if filter.Verbose { fmt.Fprintln(w, "NAME\tVHOST NAME\tDOMAINS\tMATCH\tVIRTUAL SERVICE") } else { fmt.Fprintln(w, "NAME\tVIRTUAL HOSTS") } for _, route := range routes { if filter.Verify(route) { if includeConfigType { route.Name = fmt.Sprintf("route/%s", route.Name) }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 08 20:44:50 UTC 2024 - 7.2K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
if err != nil { fmt.Println("combine WriteFile:", err) } fmt.Println("Remapped", partName, "to", fn) } delete(partDataToVerID, partName) err := os.WriteFile(fn, data, os.ModePerm) if err != nil { fmt.Println("WriteFile:", err) } } } if len(partDataToVerID) > 0 { fmt.Println("MISSING PART FILES:") for k := range partDataToVerID {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 05 11:57:44 UTC 2024 - 40.3K bytes - Viewed (0)