Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,133 for sprint (0.22 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. test/typeswitch1.go

    	*len = byte(x)
    }
    
    func whatis(x interface{}) string {
    	switch xx := x.(type) {
    	default:
    		return fmt.Sprint("default ", xx)
    	case int, int8, int16, int32:
    		return fmt.Sprint("signed ", xx)
    	case int64:
    		return fmt.Sprint("signed64 ", int64(xx))
    	case uint, uint8, uint16, uint32:
    		return fmt.Sprint("unsigned ", xx)
    	case uint64:
    		return fmt.Sprint("unsigned64 ", uint64(xx))
    	case nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:48:19 UTC 2012
    - 1.6K bytes
    - Viewed (0)
  3. 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)
  4. test/fixedbugs/issue5162.go

    	}
    	if s := fmt.Sprint(onesA == onesB, onesA != twos, onesB != twos); s != "true true true" {
    		println("fail in CheckEqNNN_TTTExtraVar:", s)
    	}
    	if s := fmt.Sprint(onesB == onesX); s != "true" {
    		println("extra var fail in CheckEqNNN_TTTExtraVar")
    	}
    }
    `
    
    func main() {
    	fmt.Print("// run\n\n")
    	fmt.Print("// THIS FILE IS AUTO-GENERATED\n\n")
    	fmt.Print("package main\n\n")
    	fmt.Println(`import "fmt"`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 19:01:50 UTC 2013
    - 2.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/testdata/script/list_test_simple.txt

    	for i := 0; i < b.N; i++ {
    		_ = fmt.Sprint("Test for bench")
    	}
    }
    -- example_test.go --
    package testlist
    
    import (
    	"fmt"
    )
    
    func ExampleSimple() {
    	fmt.Println("Test with Output.")
    
    	// Output: Test with Output.
    }
    
    func ExampleWithEmptyOutput() {
    	fmt.Println("")
    
    	// Output:
    }
    
    func ExampleNoOutput() {
    	_ = fmt.Sprint("Test with no output")
    }
    -- test_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 856 bytes
    - Viewed (0)
  9. src/go/build/constraint/expr_test.go

    				return
    			}
    			if x.String() != tt.x.String() {
    				t.Errorf("Constraint(%q):\nhave %v\nwant %v", tt.in, x, tt.x)
    			}
    		})
    	}
    }
    
    var plusBuildLinesTests = []struct {
    	in  string
    	out []string
    	err error
    }{
    	{"x", []string{"x"}, nil},
    	{"x && !y", []string{"x,!y"}, nil},
    	{"x || y", []string{"x y"}, nil},
    	{"x && (y || z)", []string{"x", "y z"}, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 18 22:36:55 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  10. 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)
Back to top