Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,696 for sprint (0.14 sec)

  1. cni/pkg/config/config.go

    	b.WriteString("MonitoringPort: " + fmt.Sprint(c.MonitoringPort) + "\n")
    	b.WriteString("LogUDSAddress: " + fmt.Sprint(c.LogUDSAddress) + "\n")
    	b.WriteString("CNIEventAddress: " + fmt.Sprint(c.CNIEventAddress) + "\n")
    	b.WriteString("ZtunnelUDSAddress: " + fmt.Sprint(c.ZtunnelUDSAddress) + "\n")
    
    	b.WriteString("AmbientEnabled: " + fmt.Sprint(c.AmbientEnabled) + "\n")
    	b.WriteString("AmbientDNSCapture: " + fmt.Sprint(c.AmbientDNSCapture) + "\n")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/internal/fmtsort/sort_test.go

    type sortTest struct {
    	data  any    // Always a map.
    	print string // Printed result using our custom printer.
    }
    
    var sortTests = []sortTest{
    	{
    		map[int]string{7: "bar", -3: "foo"},
    		"-3:foo 7:bar",
    	},
    	{
    		map[uint8]string{7: "bar", 3: "foo"},
    		"3:foo 7:bar",
    	},
    	{
    		map[string]string{"7": "bar", "3": "foo"},
    		"3:foo 7:bar",
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. internal/color/color.go

    		if IsTerminal() {
    			return color.New(color.FgYellow).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Green = func() func(a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgGreen).SprintFunc()
    		}
    		return fmt.Sprint
    	}()
    
    	Greenf = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgGreen).SprintfFunc()
    		}
    		return fmt.Sprintf
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. tools/docker-builder/types.go

    	Save              bool
    	Builder           string
    	SupportsEmulation bool
    	NoClobber         bool
    	NoCache           bool
    	Targets           []string
    	Variants          []string
    	Architectures     []string
    	BaseVersion       string
    	BaseImageRegistry string
    	ProxyVersion      string
    	ZtunnelVersion    string
    	IstioVersion      string
    	Tags              []string
    	Hubs              []string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 26 13:23:41 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. internal/logger/console.go

    	if msg == "" {
    		fmt.Fprintln(Output, args...)
    	} else {
    		fmt.Fprintf(Output, msg, args...)
    	}
    }
    
    type errorMsg struct{}
    
    var errorMessage errorMsg
    
    func (i errorMsg) json(msg string, args ...interface{}) {
    	var message string
    	if msg != "" {
    		message = fmt.Sprintf(msg, args...)
    	} else {
    		message = fmt.Sprint(args...)
    	}
    	logJSON, err := json.Marshal(&log.Entry{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. utils/tests/utils.go

    					t.Errorf("%v: expect: %v, got %v after time round", utils.FileWithLineNum(), expect.(time.Time), curTime)
    				}
    			} else if fmt.Sprint(got) != fmt.Sprint(expect) {
    				t.Errorf("%v: expect: %#v, got %#v", utils.FileWithLineNum(), expect, got)
    			}
    		}
    
    		if fmt.Sprint(got) == fmt.Sprint(expect) {
    			return
    		}
    
    		if reflect.Indirect(reflect.ValueOf(got)).IsValid() != reflect.Indirect(reflect.ValueOf(expect)).IsValid() {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  7. pkg/test/framework/components/gcemetadata/kube.go

    			return nil, err
    		}
    		c.address = net.JoinHostPort(lb, fmt.Sprint(svc.Spec.Ports[0].Port))
    		c.addressVM = net.JoinHostPort(lb, fmt.Sprint(svc.Spec.Ports[1].Port))
    	} else {
    		c.address = net.JoinHostPort(svc.Spec.ClusterIP, fmt.Sprint(svc.Spec.Ports[0].Port))
    		c.addressVM = net.JoinHostPort(svc.Spec.ClusterIP, fmt.Sprint(svc.Spec.Ports[1].Port))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/internal/itoa/itoa_test.go

    	for _, tt := range tests {
    		got := itoa.Itoa(tt)
    		want := fmt.Sprint(tt)
    		if want != got {
    			t.Fatalf("Itoa(%d) = %s, want %s", tt, got, want)
    		}
    	}
    }
    
    func TestUitoa(t *testing.T) {
    	tests := []uint{0, 1, 100, 999, math.MaxUint32, uint(maxUint64)}
    	for _, tt := range tests {
    		got := itoa.Uitoa(tt)
    		want := fmt.Sprint(tt)
    		if want != got {
    			t.Fatalf("Uitoa(%d) = %s, want %s", tt, got, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 02:53:50 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/debug/elf/elf_test.go

    	{ET_LOOS + 5, "ET_LOOS+5"},
    	{ProgFlag(0x50), "0x50"},
    	{COMPRESS_ZLIB + 2, "COMPRESS_ZSTD+1"},
    }
    
    func TestNames(t *testing.T) {
    	for i, tt := range nameTests {
    		s := fmt.Sprint(tt.val)
    		if s != tt.str {
    			t.Errorf("#%d: Sprint(%d) = %q, want %q", i, tt.val, s, tt.str)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 18 20:34:36 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. pkg/log/scope.go

    func copyStringInterfaceMap(m map[string]any) map[string]any {
    	out := make(map[string]any, len(m))
    	for k, v := range m {
    		out[k] = v
    	}
    	return out
    }
    
    func maybeSprintf(format string, args []any) string {
    	msg := format
    	if len(args) > 0 {
    		msg = fmt.Sprintf(format, args...)
    	}
    	return msg
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 16:47:01 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top