Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 117 for runExe (0.15 sec)

  1. src/bytes/buffer_test.go

    	}
    }
    
    func TestRuneIO(t *testing.T) {
    	const NRune = 1000
    	// Built a test slice while we write the data
    	b := make([]byte, utf8.UTFMax*NRune)
    	var buf Buffer
    	n := 0
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    		}
    		if nbytes != size {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/go/internal/gcimporter/support.go

    	types.Typ[types.Float64],
    	types.Typ[types.Complex64],
    	types.Typ[types.Complex128],
    	types.Typ[types.String],
    
    	// basic type aliases
    	types.Universe.Lookup("byte").Type(),
    	types.Universe.Lookup("rune").Type(),
    
    	// error
    	types.Universe.Lookup("error").Type(),
    
    	// untyped types
    	types.Typ[types.UntypedBool],
    	types.Typ[types.UntypedInt],
    	types.Typ[types.UntypedRune],
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/kubeconfig.go

    	)
    
    	// Creates the UX Command
    	cmd := &cobra.Command{
    		Use:     "user",
    		Short:   "Output a kubeconfig file for an additional user",
    		Long:    userKubeconfigLongDesc,
    		Example: userKubeconfigExample,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			// This call returns the ready-to-use configuration based on the defaults populated by flags
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/conversions.go

    			return true
    		case isInteger(x.typ) && isString(t):
    			codepoint := unicode.ReplacementChar
    			if i, ok := constant.Uint64Val(x.val); ok && i <= unicode.MaxRune {
    				codepoint = rune(i)
    			}
    			if val != nil {
    				*val = constant.MakeString(string(codepoint))
    			}
    			return true
    		}
    		return false
    	}
    
    	var ok bool
    	var cause string
    	switch {
    	case constArg && isConstType(T):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:51:00 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. internal/event/target/postgresql.go

    		return err
    	} else if match {
    		return nil
    	}
    
    	// normalize the name to letters, digits, _ or $
    	valid := true
    	cleaned := strings.Map(func(r rune) rune {
    		switch {
    		case unicode.IsLetter(r):
    			return 'a'
    		case unicode.IsDigit(r):
    			return '0'
    		case r == '_', r == '$':
    			return r
    		default:
    			valid = false
    			return -1
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. istioctl/pkg/authz/authz.go

    		Args: func(cmd *cobra.Command, args []string) error {
    			if len(args) > 1 {
    				cmd.Println(cmd.UsageString())
    				return fmt.Errorf("check requires only <pod-name>[.<pod-namespace>]")
    			}
    			return nil
    		},
    		RunE: func(cmd *cobra.Command, args []string) error {
    			kubeClient, err := ctx.CLIClient()
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %w", err)
    			}
    			var configDump *configdump.Wrapper
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/go/types/predicates.go

    	if x == y {
    		return true
    	}
    
    	if c.ignoreInvalids && (!isValid(x) || !isValid(y)) {
    		return true
    	}
    
    	switch x := x.(type) {
    	case *Basic:
    		// Basic types are singletons except for the rune and byte
    		// aliases, thus we cannot solely rely on the x == y check
    		// above. See also comment in TypeName.IsAlias.
    		if y, ok := y.(*Basic); ok {
    			return x.kind == y.kind
    		}
    
    	case *Array:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/stmt0.go

    	for range cs {}
    	for range "" {}
    	for i, x := range cs { _, _ = i, x }
    	for i, x := range "" {
    		var ii int
    		ii = i
    		_ = ii
    		var xx rune
    		xx = x
    		_ = xx
    	}
    }
    
    func rangeloops2() {
    	type I int
    	type R rune
    
    	var a [10]int
    	var i I
    	_ = i
    	for i /* ERRORx `cannot use .* in assignment` */ = range a {}
    	for i /* ERRORx `cannot use .* in assignment` */ = range &a {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. internal/s3select/select.go

    			bufioWriterPool.Put(bufioWriter)
    		}()
    
    		bufioWriter.Reset(buf)
    		opts := sql.WriteCSVOpts{
    			FieldDelimiter: []rune(s3Select.Output.CSVArgs.FieldDelimiter)[0],
    			Quote:          []rune(s3Select.Output.CSVArgs.QuoteCharacter)[0],
    			QuoteEscape:    []rune(s3Select.Output.CSVArgs.QuoteEscapeCharacter)[0],
    			AlwaysQuote:    strings.EqualFold(s3Select.Output.CSVArgs.QuoteFields, "always"),
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. src/text/template/funcs.go

    )
    
    // JSEscape writes to w the escaped JavaScript equivalent of the plain text data b.
    func JSEscape(w io.Writer, b []byte) {
    	last := 0
    	for i := 0; i < len(b); i++ {
    		c := b[i]
    
    		if !jsIsSpecial(rune(c)) {
    			// fast path: nothing to do
    			continue
    		}
    		w.Write(b[last:i])
    
    		if c < utf8.RuneSelf {
    			// Quotes, slashes and angle brackets get quoted.
    			// Control characters get written as \u00XX.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
Back to top