Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 67 for typexpr (0.19 sec)

  1. pkg/dns/client/dns.go

    func roundRobinResponse(res *dns.Msg) {
    	if res.Rcode != dns.RcodeSuccess {
    		return
    	}
    
    	if res.Question[0].Qtype == dns.TypeAXFR || res.Question[0].Qtype == dns.TypeIXFR {
    		return
    	}
    
    	res.Answer = roundRobin(res.Answer)
    	res.Ns = roundRobin(res.Ns)
    	res.Extra = roundRobin(res.Extra)
    }
    
    func roundRobin(in []dns.RR) []dns.RR {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    		}
    	}
    	s.errorf("can't evaluate field %s in type %s", fieldName, typ)
    	panic("not reached")
    }
    
    var (
    	errorType        = reflect.TypeFor[error]()
    	fmtStringerType  = reflect.TypeFor[fmt.Stringer]()
    	reflectValueType = reflect.TypeFor[reflect.Value]()
    )
    
    // evalCall executes a function or method call. If it's a method, fun already has the receiver bound, so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. src/database/sql/driver/types.go

    // are an error.
    var DefaultParameterConverter defaultConverter
    
    type defaultConverter struct{}
    
    var _ ValueConverter = defaultConverter{}
    
    var valuerReflectType = reflect.TypeFor[Valuer]()
    
    // callValuerValue returns vr.Value(), with one exception:
    // If vr.Value is an auto-generated method on a pointer type and the
    // pointer is nil, it would panic at runtime in the panicwrap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 16:30:20 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py

    """Defines a wrapper class for overridden python method definitions."""
    
    from collections.abc import Callable, Collection, Mapping, Sequence
    import functools
    import traceback
    from typing import Optional, TypeVar
    
    from absl import logging
    
    from tensorflow.compiler.mlir.quantization.stablehlo import quantization_config_pb2 as stablehlo_quant_config_pb2
    from tensorflow.compiler.mlir.quantization.tensorflow import exported_model_pb2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:32:11 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  5. src/encoding/xml/marshal.go

    		if prefix == "" {
    			break
    		}
    		p.deleteAttrPrefix(prefix)
    	}
    }
    
    var (
    	marshalerType     = reflect.TypeFor[Marshaler]()
    	marshalerAttrType = reflect.TypeFor[MarshalerAttr]()
    	textMarshalerType = reflect.TypeFor[encoding.TextMarshaler]()
    )
    
    // marshalValue writes one or more XML elements representing val.
    // If val was obtained from a struct field, finfo must have its details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. src/encoding/json/decode.go

    		return Number(s), nil
    	}
    	f, err := strconv.ParseFloat(s, 64)
    	if err != nil {
    		return nil, &UnmarshalTypeError{Value: "number " + s, Type: reflect.TypeFor[float64](), Offset: int64(d.off)}
    	}
    	return f, nil
    }
    
    var numberType = reflect.TypeFor[Number]()
    
    // literalStore decodes a literal stored in item into v.
    //
    // fromQuoted indicates whether this literal came from unwrapping a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top