Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,372 for REFLECT (0.13 sec)

  1. src/fmt/print.go

    			switch v := reflect.ValueOf(a[argNum]); v.Kind() {
    			case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
    				n := v.Int()
    				if int64(int(n)) == n {
    					num = int(n)
    					isInt = true
    				}
    			case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    				n := v.Uint()
    				if int64(n) >= 0 && uint64(int(n)) == n {
    					num = int(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  2. src/go/ast/print.go

    	"fmt"
    	"go/token"
    	"io"
    	"os"
    	"reflect"
    )
    
    // A FieldFilter may be provided to [Fprint] to control the output.
    type FieldFilter func(name string, value reflect.Value) bool
    
    // NotNilFilter is a [FieldFilter] that returns true for field values
    // that are not nil; it returns false otherwise.
    func NotNilFilter(_ string, v reflect.Value) bool {
    	switch v.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. schema/serializer.go

    	switch v := fieldValue.(type) {
    	case int64, int, uint, uint64, int32, uint32, int16, uint16:
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	case *int64, *int, *uint, *uint64, *int32, *uint32, *int16, *uint16:
    		if rv.IsZero() {
    			return nil, nil
    		}
    		result = time.Unix(reflect.Indirect(rv).Int(), 0).UTC()
    	default:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 08:28:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/importdecl0/importdecl0a.go

    	_ "math/big"
    )
    
    import "fmt"
    import f1 "fmt"
    import f2 "fmt"
    
    // reflect.flag must not be visible in this package
    type flag int
    type _ reflect.flag /* ERROR "name flag not exported by package reflect" */
    
    // imported package name may conflict with local objects
    type reflect /* ERROR "reflect already declared" */ int
    
    // dot-imported exported objects may conflict with local objects
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. callbacks/preload.go

    			if reflectFieldValue.Kind() == reflect.Ptr && reflectFieldValue.IsNil() {
    				reflectFieldValue.Set(reflect.New(rel.Field.FieldType.Elem()))
    			}
    
    			reflectFieldValue = reflect.Indirect(reflectFieldValue)
    			switch reflectFieldValue.Kind() {
    			case reflect.Struct:
    				tx.AddError(rel.Field.Set(tx.Statement.Context, data, elem.Interface()))
    			case reflect.Slice, reflect.Array:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. pkg/config/schema/collections/collections.agent.gen.go

    		VersionAliases: []string{
    			"v1",
    		},
    		Proto: "istio.security.v1beta1.AuthorizationPolicy", StatusProto: "istio.meta.v1alpha1.IstioStatus",
    		ReflectType: reflect.TypeOf(&istioioapisecurityv1beta1.AuthorizationPolicy{}).Elem(), StatusType: reflect.TypeOf(&istioioapimetav1alpha1.IstioStatus{}).Elem(),
    		ProtoPackage: "istio.io/api/security/v1beta1", StatusPackage: "istio.io/api/meta/v1alpha1",
    		ClusterScoped: false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 25 14:44:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. src/crypto/tls/handshake_messages_test.go

    	m := &certificateStatusMsg{}
    	m.response = randomBytes(rand.Intn(10)+1, rand)
    	return reflect.ValueOf(m)
    }
    
    func (*clientKeyExchangeMsg) Generate(rand *rand.Rand, size int) reflect.Value {
    	m := &clientKeyExchangeMsg{}
    	m.ciphertext = randomBytes(rand.Intn(1000)+1, rand)
    	return reflect.ValueOf(m)
    }
    
    func (*finishedMsg) Generate(rand *rand.Rand, size int) reflect.Value {
    	m := &finishedMsg{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authorization/cel/compile_test.go

    	return nil
    }
    
    func nativeTypeToCELType(t *testing.T, nativeType reflect.Type, field func(name string, declType *apiservercel.DeclType, required bool) *apiservercel.DeclField, fields func(fields ...*apiservercel.DeclField) map[string]*apiservercel.DeclField) *apiservercel.DeclType {
    	switch nativeType {
    	case reflect.TypeOf(""):
    		return apiservercel.StringType
    	case reflect.TypeOf([]string{}):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/PropertyExtractor.kt

    import java.util.Locale
    import kotlin.reflect.KClass
    import kotlin.reflect.KFunction
    import kotlin.reflect.KMutableProperty
    import kotlin.reflect.KProperty
    import kotlin.reflect.KType
    import kotlin.reflect.KVisibility
    import kotlin.reflect.full.instanceParameter
    import kotlin.reflect.full.memberFunctions
    import kotlin.reflect.full.memberProperties
    import kotlin.reflect.full.primaryConstructor
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. test/alias2.go

    // Test basic restrictions on type aliases.
    
    package p
    
    import (
    	"reflect"
    	. "reflect"
    )
    
    type T0 struct{}
    
    // Valid type alias declarations.
    
    type _ = T0
    type _ = int
    type _ = struct{}
    type _ = reflect.Value
    type _ = Value
    
    type (
    	A0 = T0
    	A1 = int
    	A2 = struct{}
    	A3 = reflect.Value
    	A4 = Value
    	A5 = Value
    
    	N0 A0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:09:14 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top