- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 166 for elem1 (1.14 sec)
-
pkg/apis/batch/v1/defaults_test.go
} obj2, err := runtime.Decode(legacyscheme.Codecs.UniversalDecoder(), data) if err != nil { t.Errorf("%v\nData: %s\nSource: %#v", err, string(data), obj) return nil } obj3 := reflect.New(reflect.TypeOf(obj).Elem()).Interface().(runtime.Object) err = legacyscheme.Scheme.Convert(obj2, obj3, nil) if err != nil { t.Errorf("%v\nSource: %#v", err, obj2) return nil } return obj3 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.8K bytes - Viewed (0) -
src/go/types/signature.go
// Since we type-checked T rather than ...T, we also need to retro-actively // record the type for ...T. if variadic { last := params[len(params)-1] last.typ = &Slice{elem: last.typ} check.recordTypeAndValue(list.List[len(list.List)-1].Type, typexpr, last.typ, nil) } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:06:18 UTC 2024 - 13K bytes - Viewed (0) -
src/internal/concurrent/hashtriemap.go
var m map[K]V mapType := abi.TypeOf(m).MapType() ht := &HashTrieMap[K, V]{ root: newIndirectNode[K, V](nil), keyHash: mapType.Hasher, keyEqual: mapType.Key.Equal, valEqual: mapType.Elem.Equal, seed: uintptr(rand.Uint64()), } return ht } type hashFunc func(unsafe.Pointer, uintptr) uintptr type equalFunc func(unsafe.Pointer, unsafe.Pointer) bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 16:01:55 UTC 2024 - 11.8K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
}) {{end}} m := testing.MainStart(testdeps.TestDeps{}, tests, benchmarks, fuzzTargets, examples) {{with .TestMain}} {{.Package}}.{{.Name}}(m) os.Exit(int(reflect.ValueOf(m).Elem().FieldByName("exitCode").Int())) {{else}} os.Exit(m.Run()) {{end}} } `) var testmainTmplNewCoverage = lazytemplate.New("main", ` // Code generated by 'go test'. DO NOT EDIT. package main
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
pkg/config/model.go
if err != nil { return nil } data := reflect.New(reflect.TypeOf(s)).Interface() if err := json.Unmarshal(js, data); err != nil { return nil } data = reflect.ValueOf(data).Elem().Interface() return data } type Status any // Key function for the configuration objects func Key(grp, ver, typ, name, namespace string) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
suffix = "_" + ctxt.InstallSuffix } switch ctxt.Compiler { case "gccgo": pkgtargetroot = "pkg/gccgo_" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix dir, elem := path.Split(p.ImportPath) pkga = pkgtargetroot + "/" + dir + "lib" + elem + ".a" case "gc": pkgtargetroot = "pkg/" + ctxt.GOOS + "_" + ctxt.GOARCH + suffix pkga = pkgtargetroot + "/" + p.ImportPath + ".a" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go
if !sig.Variadic() { return nil // not variadic } params := sig.Params() nparams := params.Len() // variadic => nonzero args := params.At(nparams - 1) iface, ok := args.Type().(*types.Slice).Elem().(*types.Interface) if !ok || !iface.Empty() { return nil // final (args) param is not ...interface{} } // Is second last param 'format string'? var format *types.Var if nparams >= 2 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 32.5K bytes - Viewed (0) -
src/html/template/js.go
// reflect.Value. See golang.org/issue/18716. if a == nil { return nil } v := reflect.ValueOf(a) for !v.Type().Implements(jsonMarshalType) && v.Kind() == reflect.Pointer && !v.IsNil() { v = v.Elem() } return v.Interface() } // jsValEscaper escapes its inputs to a JS Expression (section 11.14) that has // neither side-effects nor free variables outside (NaN, Infinity).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 14.1K bytes - Viewed (0) -
pkg/apis/apps/v1beta2/defaults_test.go
} obj2, err := runtime.Decode(legacyscheme.Codecs.UniversalDecoder(), data) if err != nil { t.Errorf("%v\nData: %s\nSource: %#v", err, string(data), obj) return nil } obj3 := reflect.New(reflect.TypeOf(obj).Elem()).Interface().(runtime.Object) err = legacyscheme.Scheme.Convert(obj2, obj3, nil) if err != nil { t.Errorf("%v\nSource: %#v", err, obj2) return nil } return obj3
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 23.4K bytes - Viewed (0) -
src/path/filepath/path_test.go
} else { jointests = append(jointests, nonwinjointests...) } for _, test := range jointests { expected := filepath.FromSlash(test.path) if p := filepath.Join(test.elem...); p != expected { t.Errorf("join(%q) = %q, want %q", test.elem, p, expected) } } } type ExtTest struct { path, ext string } var exttests = []ExtTest{ {"path.go", ".go"}, {"path.pb.go", ".go"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:38:19 UTC 2024 - 47.1K bytes - Viewed (0)