Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 43 for new512 (0.2 sec)

  1. test/typeparam/issue50598.dir/a2.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a2
    
    import "./a0"
    
    func New() int {
    	return a0.Builder[int]{}.New1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 239 bytes
    - Viewed (0)
  2. test/typeparam/issue50552.dir/a.go

    package a
    
    type Builder[T any] struct{}
    
    func (r Builder[T]) New() T {
    	var v T
    	return v
    }
    
    func (r Builder[T]) New2() T {
    	return r.New()
    }
    
    func BuildInt() int {
    	return Builder[int]{}.New()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 21:51:51 UTC 2022
    - 196 bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/issues1.go

    	~uint
    }
    
    type T2[U Unsigned] struct {
        s U
    }
    
    func (u T2[U]) Add1() U {
        return u.s + 1
    }
    
    func NewT2[U any]() T2[U /* ERROR "U does not satisfy Unsigned" */ ] {
        return T2[U /* ERROR "U does not satisfy Unsigned" */ ]{}
    }
    
    func _() {
        u := NewT2[string]()
        _ = u.Add1()
    }
    
    // When we encounter an instantiated type such as Elem[T] we must
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/runtime/gc_test.go

    	// further move the stack.
    	new2 := uintptr(unsafe.Pointer(new))
    
    	t.Logf("old stack pointer %x, new stack pointer %x", old, new2)
    	if new2 == old {
    		// Check that we didn't screw up the test's escape analysis.
    		if cls := runtime.GCTestPointerClass(unsafe.Pointer(new)); cls != "stack" {
    			t.Fatalf("test bug: new (%#x) should be a stack pointer, not %s", new2, cls)
    		}
    		// This was a real failure.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. pkg/registry/rbac/validation/rule_test.go

    	"k8s.io/apiserver/pkg/authentication/user"
    )
    
    // compute a hash of a policy rule so we can sort in a deterministic order
    func hashOf(p rbacv1.PolicyRule) string {
    	hash := fnv.New32()
    	writeStrings := func(slis ...[]string) {
    		for _, sli := range slis {
    			for _, s := range sli {
    				io.WriteString(hash, s)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. pkg/serviceaccount/openidmetadata.go

    	case *ecdsa.PublicKey:
    		switch pk.Curve {
    		case elliptic.P256():
    			return jose.ES256, nil
    		case elliptic.P384():
    			return jose.ES384, nil
    		case elliptic.P521():
    			return jose.ES512, nil
    		default:
    			return "", fmt.Errorf("unknown private key curve, must be 256, 384, or 521")
    		}
    	case jose.OpaqueSigner:
    		return jose.SignatureAlgorithm(pk.Public().Algorithm), nil
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 12 00:23:31 UTC 2020
    - 9.4K bytes
    - Viewed (0)
  7. internal/config/identity/openid/jwt.go

    	jp := new(jwtgo.Parser)
    	jp.ValidMethods = []string{
    		"RS256", "RS384", "RS512",
    		"ES256", "ES384", "ES512",
    		"HS256", "HS384", "HS512",
    		"RS3256", "RS3384", "RS3512",
    		"ES3256", "ES3384", "ES3512",
    	}
    
    	keyFuncCallback := func(jwtToken *jwtgo.Token) (interface{}, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 18:10:41 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. pkg/serviceaccount/jwt.go

    	var alg jose.SignatureAlgorithm
    	switch keyPair.Curve {
    	case elliptic.P256():
    		alg = jose.ES256
    	case elliptic.P384():
    		alg = jose.ES384
    	case elliptic.P521():
    		alg = jose.ES512
    	default:
    		return nil, fmt.Errorf("unknown private key curve, must be 256, 384, or 521")
    	}
    
    	keyID, err := keyIDFromPublicKey(&keyPair.PublicKey)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  9. api/go1.9.txt

    pkg encoding/json, func Valid([]uint8) bool
    pkg go/ast, type TypeSpec struct, Assign token.Pos
    pkg go/types, func SizesFor(string, string) Sizes
    pkg go/types, method (*TypeName) IsAlias() bool
    pkg hash/fnv, func New128() hash.Hash
    pkg hash/fnv, func New128a() hash.Hash
    pkg html/template, const ErrPredefinedEscaper = 11
    pkg html/template, const ErrPredefinedEscaper ErrorCode
    pkg image/png, type Encoder struct, BufferPool EncoderBufferPool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  10. tests/hooks_test.go

    	}
    
    	// Code changed, but not selected, price should not change
    	DB.Model(&product).Select("Name", "Price").Updates(map[string]interface{}{"Name": "Product New2", "code": "L1213"})
    
    	if product.Name != "Product New2" || product.Price != 170 || product.Code != "L1212" {
    		t.Errorf("invalid data after update, got %+v", product)
    	}
    
    	// Code changed, price should changed
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
Back to top