- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 114 for isAttr (0.18 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go
return false // the call is not of the form x.f() } res := sig.Results() if res.Len() != 2 { return false // the function called does not return two values. } isPtr, named := typesinternal.ReceiverNamed(res.At(0)) if !isPtr || named == nil || !analysisutil.IsNamedType(named, "net/http", "Response") { return false // the first return type is not *http.Response. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iimport.go
// TODO(mdempsky): Store this information directly in the Type's Name. var typeSymIdx = make(map[*types.Type][2]int64) func BaseTypeIndex(t *types.Type) int64 { tbase := t if t.IsPtr() && t.Sym() == nil && t.Elem().Sym() != nil { tbase = t.Elem() } i, ok := typeSymIdx[tbase] if !ok { return -1 } if t != tbase { return i[1] } return i[0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:52:50 UTC 2023 - 1.3K bytes - Viewed (0) -
scan.go
} reflectValueType := reflectValue.Type() switch reflectValueType.Kind() { case reflect.Array, reflect.Slice: reflectValueType = reflectValueType.Elem() } isPtr := reflectValueType.Kind() == reflect.Ptr if isPtr { reflectValueType = reflectValueType.Elem() } if sch != nil { if reflectValueType != sch.ModelType && reflectValueType.Kind() == reflect.Struct {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Wed Jun 12 10:57:36 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/compile/internal/types2/lookup.go
// methods of the pointer base type when T is a (*Named) pointer type. typ, isPtr := deref(T) // *typ where typ is an interface (incl. a type parameter) has no methods. if isPtr { if _, ok := under(typ).(*Interface); ok { return } } // Start with typ as single entry at shallowest depth. current := []embeddedType{{typ, nil, isPtr, false}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 19.8K bytes - Viewed (0) -
src/go/types/lookup.go
// methods of the pointer base type when T is a (*Named) pointer type. typ, isPtr := deref(T) // *typ where typ is an interface (incl. a type parameter) has no methods. if isPtr { if _, ok := under(typ).(*Interface); ok { return } } // Start with typ as single entry at shallowest depth. current := []embeddedType{{typ, nil, isPtr, false}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 19.9K bytes - Viewed (0) -
operator/pkg/validate/validate.go
if structPtr == nil { return nil } if util.IsStruct(structPtr) { scope.Debugf("validate path %s, skipping struct type %T", path, structPtr) return nil } if !util.IsPtr(structPtr) { metrics.CRValidationErrorTotal.Increment() return util.NewErrs(fmt.Errorf("validate path %s, value: %v, expected ptr, got %T", path, structPtr, structPtr)) } structElems := reflect.ValueOf(structPtr).Elem()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jan 12 16:04:15 UTC 2023 - 7.7K bytes - Viewed (0) -
src/go/types/struct.go
// (via under(t)) a possibly incomplete type. // for use in the closure below embeddedTyp := typ embeddedPos := f.Type check.later(func() { t, isPtr := deref(embeddedTyp) switch u := under(t).(type) { case *Basic: if !isValid(t) { // error was reported before return } // unsafe.Pointer is treated like a regular pointer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/struct.go
// (via under(t)) a possibly incomplete type. embeddedTyp := typ // for closure below embeddedPos := pos check.later(func() { t, isPtr := deref(embeddedTyp) switch u := under(t).(type) { case *Basic: if !isValid(t) { // error was reported before return } // unsafe.Pointer is treated like a regular pointer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 6.6K bytes - Viewed (0) -
src/net/http/sniff.go
func isWS(b byte) bool { switch b { case '\t', '\n', '\x0c', '\r', ' ': return true } return false } // isTT reports whether the provided byte is a tag-terminating byte (0xTT) // as defined in https://mimesniff.spec.whatwg.org/#terminology. func isTT(b byte) bool { switch b { case ' ', '>': return true } return false } type sniffSig interface {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 20 21:51:06 UTC 2022 - 7.9K bytes - Viewed (0) -
operator/pkg/util/reflect.go
} return reflect.TypeOf(value).Kind() } // IsString reports whether value is a string type. func IsString(value any) bool { return kindOf(value) == reflect.String } // IsPtr reports whether value is a ptr type. func IsPtr(value any) bool { return kindOf(value) == reflect.Ptr } // IsMap reports whether value is a map type. func IsMap(value any) bool { return kindOf(value) == reflect.Map }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0)