Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 346 for Fprintln (0.18 sec)

  1. 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))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. buildscripts/gen-ldflags.go

    	if commitUnix, err = exec.Command(cmdName, cmdArgs...).Output(); err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	t, err := time.Parse(time.RFC3339, strings.TrimSpace(string(commitUnix)))
    	if err != nil {
    		fmt.Fprintln(os.Stderr, "Error generating git commit-time: ", err)
    		os.Exit(1)
    	}
    
    	return t.UTC()
    }
    
    func main() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jun 16 23:10:48 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  3. 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)
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  4. misc/ios/detect.go

    		fail("did not find mobile provision matching device udids %q", udids)
    	}
    
    	fmt.Println("# Available provisioning profiles below.")
    	fmt.Println("# NOTE: Any existing app on the device with the app id specified by GOIOS_APP_ID")
    	fmt.Println("# will be overwritten when running Go programs.")
    	for _, mp := range mps {
    		fmt.Println()
    		f, err := os.CreateTemp("", "go_ios_detect_")
    		check(err)
    		fname := f.Name()
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. 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
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Mar 12 10:02:09 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. 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()
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  7. 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
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Apr 04 20:29:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/compare/sds/writer.go

    // printSecretItemsTabular prints the secret in table format
    func (w *sdsWriter) printSecretItemsTabular(secrets []SecretItem) error {
    	if len(secrets) == 0 {
    		fmt.Fprintln(w.w, "No secret items to show.")
    		return nil
    	}
    	tw := new(tabwriter.Writer).Init(w.w, 0, 5, 5, ' ', 0)
    	fmt.Fprintln(tw, strings.Join(secretItemColumns, "\t"))
    	for _, s := range secrets {
    		if includeConfigType {
    			s.Name = fmt.Sprintf("secret/%s", s.Name)
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 21 14:17:23 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/workload.go

    			return in < jn
    		}
    		iNode := verifiedWorkloads[i].Node
    		jNode := verifiedWorkloads[j].Node
    		return iNode < jNode
    	})
    
    	if filter.Verbose {
    		fmt.Fprintln(w, "NAMESPACE\tPOD NAME\tIP\tNODE\tWAYPOINT\tPROTOCOL")
    	} else {
    		fmt.Fprintln(w, "NAMESPACE\tPOD NAME\tIP\tNODE")
    	}
    
    	for _, wl := range verifiedWorkloads {
    		var ip string
    		if len(wl.WorkloadIPs) > 0 {
    			ip = wl.WorkloadIPs[0]
    		}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Tue Apr 23 21:30:30 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/configdump/cluster.go

    	w, clusters, err := c.setupClusterConfigWriter()
    	if err != nil {
    		return err
    	}
    	if includeConfigType {
    		_, _ = fmt.Fprintln(w, "NAME\tSERVICE FQDN\tPORT\tSUBSET\tDIRECTION\tTYPE\tDESTINATION RULE")
    	} else {
    		_, _ = fmt.Fprintln(w, "SERVICE FQDN\tPORT\tSUBSET\tDIRECTION\tTYPE\tDESTINATION RULE")
    	}
    	for _, c := range clusters {
    		if filter.Verify(c) {
    			if len(strings.Split(c.Name, "|")) > 3 {
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu May 11 05:38:17 GMT 2023
    - 5.9K bytes
    - Viewed (0)
Back to top