Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 105 for typexpr (0.13 sec)

  1. src/cmd/go/internal/imports/build.go

    // all tags are both true and false at the same time.
    func eval(x constraint.Expr, tags map[string]bool, prefer bool) bool {
    	switch x := x.(type) {
    	case *constraint.TagExpr:
    		return matchTag(x.Tag, tags, prefer)
    	case *constraint.NotExpr:
    		return !eval(x.X, tags, !prefer)
    	case *constraint.AndExpr:
    		return eval(x.X, tags, prefer) && eval(x.Y, tags, prefer)
    	case *constraint.OrExpr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. src/encoding/json/bench_test.go

    		maxTypes = 1e3 // restrict cache sizes on builders
    	}
    
    	// Dynamically generate many new types.
    	types := make([]reflect.Type, maxTypes)
    	fs := []reflect.StructField{{
    		Type:  reflect.TypeFor[string](),
    		Index: []int{0},
    	}}
    	for i := range types {
    		fs[0].Name = fmt.Sprintf("TypeFieldsCache%d", i)
    		types[i] = reflect.StructOf(fs)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:00:17 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/net/dnsclient_unix_test.go

    							NS: dnsmessage.MustNewName("good.golang.org."),
    						},
    					},
    				)
    			case dnsmessage.TypePTR:
    				r.Answers = append(r.Answers,
    					dnsmessage.Resource{
    						Header: dnsmessage.ResourceHeader{
    							Name:   dnsmessage.MustNewName("<html>.golang.org."),
    							Type:   dnsmessage.TypePTR,
    							Class:  dnsmessage.ClassINET,
    							Length: 4,
    						},
    						Body: &dnsmessage.PTRResource{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  4. src/reflect/type.go

    		s = "<-chan " + stringFor(typ)
    	case BothDir:
    		typeStr := stringFor(typ)
    		if typeStr[0] == '<' {
    			// typ is recv chan, need parentheses as "<-" associates with leftmost
    			// chan possible, see:
    			// * https://golang.org/ref/spec#Channel_types
    			// * https://github.com/golang/go/issues/39897
    			s = "chan (" + typeStr + ")"
    		} else {
    			s = "chan " + typeStr
    		}
    	}
    	for _, tt := range typesByString(s) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. src/archive/tar/reader.go

    				hdr.Name = gnuLongName
    			}
    			if gnuLongLink != "" {
    				hdr.Linkname = gnuLongLink
    			}
    			if hdr.Typeflag == TypeRegA {
    				if strings.HasSuffix(hdr.Name, "/") {
    					hdr.Typeflag = TypeDir // Legacy archives use trailing slash for directories
    				} else {
    					hdr.Typeflag = TypeReg
    				}
    			}
    
    			// The extended headers may have updated the size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 01:59:14 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  6. src/html/template/js.go

    	"in":         true,
    	"instanceof": true,
    	"return":     true,
    	"throw":      true,
    	"try":        true,
    	"typeof":     true,
    	"void":       true,
    }
    
    var jsonMarshalType = reflect.TypeFor[json.Marshaler]()
    
    // indirectToJSONMarshaler returns the value, after dereferencing as many times
    // as necessary to reach the base type (or nil) or an implementation of json.Marshal.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    // values are taken into account.
    func (tr *TypeRepr) String() string {
    	if len(tr.Repr) == 0 {
    		return ""
    	}
    	if len(tr.FormatArgs) == 0 {
    		return tr.Repr
    	}
    	return fmt.Sprintf(tr.Repr, tr.FormatArgs...)
    }
    
    // Empty reports whether the result of String would be "".
    func (tr *TypeRepr) Empty() bool {
    	return len(tr.Repr) == 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. tensorflow/c/kernels_test.cc

      }
    }
    
    TEST(TestKernel, DeleteKernelBuilderIsOkOnNull) {
      TF_DeleteKernelBuilder(nullptr);
    }
    
    std::string ExpectedString(const char* type) {
      const auto format_str = R"str(kernel {
      op: "TypeOp%s"
      device_type: "FakeDeviceName1"
      constraint {
        name: "T"
        allowed_values {
          list {
            type: %s
          }
        }
      }
    }
    )str";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  9. src/runtime/alg.go

    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/aristanetworks/goarista
    //   - github.com/bytedance/sonic
    //   - github.com/bytedance/go-tagexpr/v2
    //   - github.com/cloudwego/frugal
    //   - github.com/cloudwego/dynamicgo
    //   - github.com/v2fly/v2ray-core/v5
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    	fileinfo, err := os.Stat("testdata/small.txt")
    	if err != nil {
    		t.Fatal(err)
    	}
    	hdr, err := FileInfoHeader(fileinfo, "")
    	if err != nil {
    		t.Fatalf("os.Stat:1 %v", err)
    	}
    	hdr.Typeflag = TypeDir
    	// Force a PAX long name to be written. The name was taken from a practical example
    	// that fails and replaced ever char through numbers to anonymize the sample.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
Back to top