- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 272 for Fprintln (0.06 sec)
-
src/bufio/example_test.go
for scanner.Scan() { fmt.Println(scanner.Text()) // Println will add back the final '\n' } if err := scanner.Err(); err != nil { fmt.Fprintln(os.Stderr, "reading standard input:", err) } } // Return the most recent call to Scan as a []byte. func ExampleScanner_Bytes() { scanner := bufio.NewScanner(strings.NewReader("gopher")) for scanner.Scan() { fmt.Println(len(scanner.Bytes()) == 6) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
cmd/main.go
fmt.Fprintln(banner, color.Blue("License:")+color.Bold(" "+MinioLicense)) fmt.Fprintln(banner, color.Blue("Version:")+color.Bold(" %s (%s %s/%s)", ReleaseTag, runtime.Version(), runtime.GOOS, runtime.GOARCH)) } func versionBanner(c *cli.Context) io.Reader { banner := &strings.Builder{} fmt.Fprintln(banner, color.Bold("%s version %s (commit-id=%s)", c.App.Name, c.App.Version, CommitID))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jul 30 22:59:48 UTC 2024 - 6.5K bytes - Viewed (0) -
internal/logger/console.go
Message: message, Time: time.Now().UTC(), }) if err != nil { panic(err) } fmt.Fprintln(Output, string(logJSON)) } func (i infoMsg) quiet(msg string, args ...interface{}) { } func (i infoMsg) pretty(msg string, args ...interface{}) { if msg == "" { fmt.Fprintln(Output, args...) } else { fmt.Fprintf(Output, `INFO: `+msg, args...) } } type errorMsg struct{}
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 7.5K bytes - Viewed (0) -
istioctl/pkg/writer/compare/cluster.go
Context: c.context, } text, err := difflib.GetUnifiedDiffString(diff) if err != nil { return err } if text != "" { fmt.Fprintln(c.w, "Clusters Don't Match") fmt.Fprintln(c.w, text) } else { fmt.Fprintln(c.w, "Clusters Match") } return nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Mar 12 10:02:09 UTC 2024 - 1.9K bytes - Viewed (0) -
istioctl/pkg/writer/compare/listener.go
Context: c.context, } text, err := difflib.GetUnifiedDiffString(diff) if err != nil { return err } if text != "" { fmt.Fprintln(c.w, "Listeners Don't Match") fmt.Fprintln(c.w, text) } else { fmt.Fprintln(c.w, "Listeners Match") } return nil
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Apr 04 20:29:08 UTC 2024 - 2K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer.go
// 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 { fmt.Fprintf(tw, "%s\t%s\t%t\t%s\t%s\t%s\t%s\t%s\n",
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Oct 28 19:52:53 UTC 2024 - 4.8K bytes - Viewed (0) -
internal/logger/target/console/console.go
} if logger.IsJSON() { logJSON, err := json.Marshal(&entry) if err != nil { return err } fmt.Fprintln(c.output, string(logJSON)) return nil } if entry.Level == logger.EventKind { fmt.Fprintln(c.output, entry.Message) return nil } traceLength := len(entry.Trace.Source) trace := make([]string, traceLength)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 3.9K 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) -
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/writer/ztunnel/configdump/policies.go
slices.SortFunc(pols, func(a, b *ZtunnelPolicy) int { if r := cmp.Compare(a.Namespace, b.Namespace); r != 0 { 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() }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri May 31 21:45:11 UTC 2024 - 2.4K bytes - Viewed (0)