- Sort Score
- Result 10 results
- Languages All
Results 21 - 29 of 29 for nilslice (0.22 sec)
-
src/cmd/compile/internal/types2/under.go
if tpar == nil { return under(t) // string or untyped string } var su Type hasString := false if tpar.underIs(func(u Type) bool { if u == nil { return false } if isString(u) { u = NewSlice(universeByte) hasString = true } if su != nil { u = match(su, u) if u == nil { return false } } // su == nil || match(su, u) != nil su = u return true }) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.7K bytes - Viewed (0) -
src/go/types/under.go
if tpar == nil { return under(t) // string or untyped string } var su Type hasString := false if tpar.underIs(func(u Type) bool { if u == nil { return false } if isString(u) { u = NewSlice(universeByte) hasString = true } if su != nil { u = match(su, u) if u == nil { return false } } // su == nil || match(su, u) != nil su = u return true }) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 22:34:27 UTC 2024 - 2.8K bytes - Viewed (0) -
operator/pkg/tpath/struct.go
func Set(val, out any) error { // Special case: map out type must be set through map ptr. if util.IsMap(val) && util.IsMapPtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val)) return nil } if util.IsSlice(val) && util.IsSlicePtr(out) { reflect.ValueOf(out).Elem().Set(reflect.ValueOf(val)) return nil } if reflect.TypeOf(val) != reflect.TypeOf(out) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 4.4K bytes - Viewed (0) -
operator/pkg/util/reflect.go
} // IsMapPtr reports whether v is a map ptr type. func IsMapPtr(v any) bool { t := reflect.TypeOf(v) return t.Kind() == reflect.Ptr && t.Elem().Kind() == reflect.Map } // IsSlice reports whether value is a slice type. func IsSlice(value any) bool { return kindOf(value) == reflect.Slice } // IsStruct reports whether value is a struct type func IsStruct(value any) bool { return kindOf(value) == reflect.Struct }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 8.6K bytes - Viewed (0) -
pkg/apis/resource/structured/namedresources/validation/validation.go
} if attribute.BoolValue != nil { entries.Insert("bool") } if attribute.IntValue != nil { entries.Insert("int") } if attribute.IntSliceValue != nil { entries.Insert("intSlice") } if attribute.StringValue != nil { entries.Insert("string") } if attribute.StringSliceValue != nil { entries.Insert("stringSlice") } if attribute.VersionValue != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:26:20 UTC 2024 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/staticdata/embed.go
func embedKind(typ *types.Type) int { if typ.Sym() != nil && typ.Sym().Name == "FS" && typ.Sym().Pkg.Path == "embed" { return embedFiles } if typ.Kind() == types.TSTRING { return embedString } if typ.IsSlice() && typ.Elem().Kind() == types.TUINT8 { return embedBytes } return embedUnknown } func embedFileNameSplit(name string) (dir, elem string, isDir bool) { if name[len(name)-1] == '/' { isDir = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 10 18:22:02 UTC 2023 - 4.8K bytes - Viewed (0) -
src/sort/search.go
func SearchStrings(a []string, x string) int { return Search(len(a), func(i int) bool { return a[i] >= x }) } // Search returns the result of applying [SearchInts] to the receiver and x. func (p IntSlice) Search(x int) int { return SearchInts(p, x) } // Search returns the result of applying [SearchFloat64s] to the receiver and x. func (p Float64Slice) Search(x float64) int { return SearchFloat64s(p, x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 28 16:40:32 UTC 2023 - 5.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/mkbuiltin.go
log.Fatalf("unhandled type: %#v", t) } return "types.Types[types.TUNSAFEPTR]" case *ast.ArrayType: if t.Len == nil { return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt)) } return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len)) case *ast.ChanType: dir := "types.Cboth" switch t.Dir { case ast.SEND:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:49 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/compile/internal/reflectdata/helpers.go
// expression that yields the *runtime._type value representing typ's // element type. func sliceElemRType(pos src.XPos, typ *types.Type) ir.Node { base.AssertfAt(typ.IsSlice(), pos, "want slice type, have %v", typ) return TypePtrAt(pos, typ.Elem()) } // concreteRType asserts that typ is not an interface type, and // returns an expression that yields the *runtime._type value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 04:50:32 UTC 2023 - 7.1K bytes - Viewed (0)