Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for newBar (0.1 sec)

  1. src/go/types/issues_test.go

    		t.Error("comparable not assignable to any")
    	}
    }
    
    func TestIssue55030(t *testing.T) {
    	// makeSig makes the signature func(typ...)
    	makeSig := func(typ Type) {
    		par := NewVar(nopos, nil, "", typ)
    		params := NewTuple(par)
    		NewSignatureType(nil, nil, nil, params, nil, true)
    	}
    
    	// makeSig must not panic for the following (example) types:
    	// []int
    	makeSig(NewSlice(Typ[Int]))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/kubeconfig/kubeconfig.go

    	clientCertConfig := newClientCertConfigFromKubeConfigSpec(spec)
    
    	clientKey, err := pkiutil.NewPrivateKey(clientCertConfig.EncryptionAlgorithm)
    	if err != nil {
    		return err
    	}
    	clientCSR, err := pkiutil.NewCSR(clientCertConfig, clientKey)
    	if err != nil {
    		return err
    	}
    
    	encodedClientKey, err := keyutil.MarshalPrivateKeyToPEM(clientKey)
    	if err != nil {
    		return err
    	}
    
    	var (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 17:04:18 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/issues_test.go

    		t.Error("comparable not assignable to any")
    	}
    }
    
    func TestIssue55030(t *testing.T) {
    	// makeSig makes the signature func(typ...)
    	makeSig := func(typ Type) {
    		par := NewVar(nopos, nil, "", typ)
    		params := NewTuple(par)
    		NewSignatureType(nil, nil, nil, params, nil, true)
    	}
    
    	// makeSig must not panic for the following (example) types:
    	// []int
    	makeSig(NewSlice(Typ[Int]))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. src/go/types/decl.go

    				check.declare(check.scope, name, lhs[i], scopePos)
    			}
    
    		case varDecl:
    			top := len(check.delayed)
    
    			lhs0 := make([]*Var, len(d.spec.Names))
    			for i, name := range d.spec.Names {
    				lhs0[i] = NewVar(name.Pos(), pkg, name.Name, nil)
    			}
    
    			// initialize all variables
    			for i, obj := range lhs0 {
    				var lhs []*Var
    				var init ast.Expr
    				switch len(d.spec.Values) {
    				case len(d.spec.Names):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. cmd/server-main.go

    	if ctx.IsSet("log-prefix") {
    		fileNameFunc = func() string {
    			return fmt.Sprintf("%s-%s.log", ctx.String("log-prefix"), fmt.Sprintf("%X", time.Now().UTC().UnixNano()))
    		}
    	}
    
    	output, err := logger.NewDir(logger.Options{
    		Directory:       lgDirAbs,
    		MaximumFileSize: int64(lgSize),
    		Compress:        ctx.Bool("log-compress"),
    		FileNameFunc:    fileNameFunc,
    	})
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (1)
Back to top