- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 312 for Fprint (0.09 sec)
-
istioctl/pkg/writer/table/writer.go
return } sep := getMaxWidths(output) for _, row := range output { for i, col := range row { _, _ = fmt.Fprint(c.writer, col.String()) if i == len(row)-1 { _, _ = fmt.Fprint(c.writer, "\n") } else { padAmount := sep[i] - utf8.RuneCount([]byte(col.Value)) + 2 _, _ = fmt.Fprint(c.writer, strings.Repeat(" ", padAmount)) } } } } func getMaxWidths(output [][]Cell) []int {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0) -
istioctl/pkg/authz/listener.go
parts := re.FindStringSubmatch(name) if len(parts) != 4 { log.Errorf("failed to parse policy name: %s", name) return "", "" } return fmt.Sprintf("%s.%s", parts[2], parts[1]), parts[3] } // Print prints the AuthorizationPolicy in the listener. func Print(writer io.Writer, listeners []*listener.Listener) { parsedListeners := parse(listeners) if parsedListeners == nil { return }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Sep 11 15:29:30 UTC 2023 - 6K bytes - Viewed (0) -
internal/logger/console.go
if len(line) == 0 { // No more text to print, just quit. break } for { // Save the attributes of the current cursor helps // us save the text color of the passed error message ansiSaveAttributes() // Print banner with or without the log tag if !tagPrinted { fmt.Fprint(Output, logBanner) tagPrinted = true } else { fmt.Fprint(Output, emptyBanner) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 12 20:51:54 UTC 2024 - 7.5K bytes - Viewed (0) -
src/bufio/example_test.go
package bufio_test import ( "bufio" "bytes" "fmt" "os" "strconv" "strings" ) func ExampleWriter() { w := bufio.NewWriter(os.Stdout) fmt.Fprint(w, "Hello, ") fmt.Fprint(w, "world!") w.Flush() // Don't forget to flush! // Output: Hello, world! } func ExampleWriter_AvailableBuffer() { w := bufio.NewWriter(os.Stdout) for _, i := range []int64{1, 2, 3, 4} {
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/internaldebug/internal-debug.go
namespace, serviceAccount, kubeClient, multixds.DefaultOptions) if respErr != nil { return xdsResponses, respErr } _, _ = fmt.Fprint(writer, "error: according to below command list, please check all supported internal debug commands\n") return xdsResponses, nil } func HandlerForDebugErrors(kubeClient kube.CLIClient,
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Fri Jul 12 11:30:24 UTC 2024 - 6.7K bytes - Viewed (0) -
istioctl/pkg/writer/compare/sds/writer.go
if includeConfigType { s.Name = fmt.Sprintf("secret/%s", s.Name) } // If all secrets have a trust domain, we are probably dealing with trust domain federation, so print trust domains. // Otherwise, do not do that, because we do not know how to determine that information from the certificate, // so the output would be confusing. if !hasUnknownTrustDomain { fmt.Fprintf(tw, "%s\t%s\t%s\t%t\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) -
istioctl/pkg/writer/envoy/configdump/route.go
type RouteFilter struct { Name string Verbose bool } // Verify returns true if the passed route matches the filter fields func (r *RouteFilter) Verify(route *route.RouteConfiguration) bool { if r.Name != "" && r.Name != route.Name { return false } return true }
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Aug 08 20:44:50 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/asm/internal/flags/flags.go
type MultiFlag []string func (m *MultiFlag) String() string { if len(*m) == 0 { return "" } return fmt.Sprint(*m) } func (m *MultiFlag) Set(val string) error { (*m) = append(*m, val) return nil } func Usage() { fmt.Fprintf(os.Stderr, "usage: asm [options] file.s ...\n") fmt.Fprintf(os.Stderr, "Flags:\n") flag.PrintDefaults() os.Exit(2) } func Parse() { objabi.Flagparse(Usage)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Tue Aug 22 19:18:23 UTC 2023 - 2.8K bytes - Viewed (0) -
istioctl/pkg/writer/ztunnel/configdump/services.go
continue } healthyEndpoints++ } endpoints := fmt.Sprintf("%d/%d", healthyEndpoints, allEndpoints) waypoint := serviceWaypointName(svc, zDump.Services) fmt.Fprintf(w, "%v\t%v\t%v\t%v\t%v\n", svc.Namespace, svc.Name, strings.Join(ips, ","), waypoint, endpoints) } return w.Flush() } // PrintServiceDump prints the relevant services in the config dump to the ConfigWriter stdout
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Jul 24 09:07:30 UTC 2024 - 3.2K bytes - Viewed (0) -
cmd/ftp-server.go
type minioLogger struct{} // Print implement Logger func (log *minioLogger) Print(sessionID string, message interface{}) { if serverDebugLog { fmt.Printf("%s %s\n", sessionID, message) } } // Printf implement Logger func (log *minioLogger) Printf(sessionID string, format string, v ...interface{}) { if serverDebugLog { if sessionID != "" { fmt.Printf("%s %s\n", sessionID, fmt.Sprintf(format, v...))
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Mar 09 03:07:08 UTC 2024 - 4.8K bytes - Viewed (0)