Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for elts (0.05 sec)

  1. src/go/types/expr.go

    				goto Error
    			}
    			if len(e.Elts) == 0 {
    				break
    			}
    			// Convention for error messages on invalid struct literals:
    			// we mention the struct type only if it clarifies the error
    			// (e.g., a duplicate field error doesn't need the struct type).
    			fields := utyp.fields
    			if _, ok := e.Elts[0].(*ast.KeyValueExpr); ok {
    				// all elements must have keys
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_messages.go

    				exts.AddUint8LengthPrefixed(func(exts *cryptobyte.Builder) {
    					exts.AddBytes([]byte(m.alpnProtocol))
    				})
    			})
    		})
    	}
    	if len(m.scts) > 0 {
    		exts.AddUint16(extensionSCT)
    		exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    			exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    				for _, sct := range m.scts {
    					exts.AddUint16LengthPrefixed(func(exts *cryptobyte.Builder) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/envoyfilter/listener_patch_test.go

    				Value: buildPatchStruct(`
    					{"transport_socket":{
    						"name":"transport_sockets.alts",
    						"typed_config":{
    							"@type":"type.googleapis.com/udpa.type.v1.TypedStruct",
                  "type_url": "type.googleapis.com/envoy.extensions.transport_sockets.alts.v3.Alts",
    							"value":{"handshaker_service":"1.2.3.4"}}}}`),
    			},
    		},
    		// Patch custom TLS type to a FC without TLS already set
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 70.1K bytes
    - Viewed (0)
  4. src/net/http/fs_test.go

    	if !f.fi.dir {
    		return nil, fs.ErrInvalid
    	}
    	var fis []fs.FileInfo
    
    	limit := f.entpos + count
    	if count <= 0 || limit > len(f.fi.ents) {
    		limit = len(f.fi.ents)
    	}
    	for ; f.entpos < limit; f.entpos++ {
    		fis = append(fis, f.fi.ents[f.entpos])
    	}
    
    	if len(fis) == 0 && count > 0 {
    		return fis, io.EOF
    	} else {
    		return fis, nil
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  5. src/crypto/x509/x509.go

    				if err != nil {
    					return nil, err
    				}
    
    				exts = append(exts, pkix.Extension{
    					Id:    oidExtensionReasonCode,
    					Value: reasonBytes,
    				})
    			}
    
    			if len(exts) > 0 {
    				rc.Extensions = exts
    			}
    			revokedCerts[i] = rc
    		}
    	}
    
    	aki, err := asn1.Marshal(authKeyId{Id: issuer.SubjectKeyId})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  6. src/go/build/build.go

    // Otherwise it is not possible to vendor just a/b/c and still import the
    // non-vendored a/b. See golang.org/issue/13832.
    func hasGoFiles(ctxt *Context, dir string) bool {
    	ents, _ := ctxt.readDir(dir)
    	for _, ent := range ents {
    		if !ent.IsDir() && strings.HasSuffix(ent.Name(), ".go") {
    			return true
    		}
    	}
    	return false
    }
    
    func findImportComment(data []byte) (s string, line int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        Set<SomeEnum> units = Stream.<SomeEnum>empty().collect(Sets.toImmutableEnumSet());
        assertThat(units).isEmpty();
      }
    
      public void testToImmutableEnumSetReused() {
        // The method call lets us capture the accumulator as an A and invoke the callbacks manually
        genericTestToImmutableEnumSetReused(Sets.<SomeEnum>toImmutableEnumSet());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  8. src/cmd/dist/build.go

    	os.Setenv("GOCACHE", pathf("%s/pkg/obj/go-build", goroot))
    
    	// Disable GOEXPERIMENT when building toolchain1 and
    	// go_bootstrap. We don't need any experiments for the
    	// bootstrap toolchain, and this lets us avoid duplicating the
    	// GOEXPERIMENT-related build logic from cmd/go here. If the
    	// bootstrap toolchain is < Go 1.17, it will ignore this
    	// anyway since GOEXPERIMENT is baked in; otherwise it will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. src/net/http/request.go

    // are of type ProtocolError.
    type ProtocolError struct {
    	ErrorString string
    }
    
    func (pe *ProtocolError) Error() string { return pe.ErrorString }
    
    // Is lets http.ErrNotSupported match errors.ErrUnsupported.
    func (pe *ProtocolError) Is(err error) bool {
    	return pe == ErrNotSupported && err == errors.ErrUnsupported
    }
    
    var (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    		// this is created by code in this file.
    		if t.Name == "unsafe.Pointer" {
    			return ast.NewIdent("_cgo_unsafe.Pointer")
    		}
    	case *ast.ArrayType:
    		t1 := p.rewriteUnsafe(t.Elt)
    		if t1 != t.Elt {
    			r := *t
    			r.Elt = t1
    			return &r
    		}
    	case *ast.StructType:
    		changed := false
    		fields := *t.Fields
    		fields.List = nil
    		for _, f := range t.Fields.List {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top