- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 987 for typeOf (0.1 sec)
-
pkg/registry/authorization/util/helpers_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 25 16:06:18 UTC 2023 - 4.7K bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/logic.js
* * @version 2.3.77 * @website http://formvalidator.net/ * @author Victor Jonsson, http://victorjonsson.se * @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 2.1K bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/lang/ca.js
* * @version 2.3.77 * @website http://formvalidator.net/ * @author Victor Jonsson, http://victorjonsson.se * @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 2.6K bytes - Viewed (0) -
test/fixedbugs/issue22605.go
// license that can be found in the LICENSE file. // We were picking up a special noalg type from typelinks. package main import "reflect" func f(m map[string]int) int { return m["a"] } func g(m map[[8]string]int) int { t := reflect.ArrayOf(8, reflect.TypeOf("")) a := reflect.New(t).Elem() return m[a.Interface().([8]string)] } func main() { m := map[[8]string]int{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 22:29:48 UTC 2017 - 504 bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/lang/ka.js
* * @version 2.3.77 * @website http://formvalidator.net/ * @author Victor Jonsson, http://victorjonsson.se * @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 5.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/ip.go
} // Equal implements ref.Val.Equal. func (d IP) Equal(other ref.Val) ref.Val { otherD, ok := other.(IP) if !ok { return types.ValOrErr(other, "no such overload") } return types.Bool(d.Addr == otherD.Addr) } // Type implements ref.Val.Type. func (d IP) Type() ref.Type { return IPType } // Value implements ref.Val.Value. func (d IP) Value() any {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 15 11:02:33 UTC 2023 - 2.1K bytes - Viewed (0) -
src/errors/wrap.go
// As(target) returns true. In the latter case, the As method is responsible for // setting target. // // An error type might provide an As method so it can be treated as if it were a // different error type. // // As panics if target is not a non-nil pointer to either a type that implements // error, or to any interface type. func As(err error, target any) bool { if err == nil { return false } if target == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:04 UTC 2024 - 4.3K bytes - Viewed (0) -
test/typeparam/issue48253.go
package main import ( "reflect" ) type A[T any] struct { B[int] } type B[T any] struct { } func (b B[T]) Bat() { t := new(T) if tt := reflect.TypeOf(t); tt.Kind() != reflect.Pointer || tt.Elem().Kind() != reflect.Int { panic("unexpected type, want: *int, got: "+tt.String()) } } type Foo struct { A[string] } func main() { Foo{}.A.Bat() Foo{}.A.B.Bat()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 551 bytes - Viewed (0) -
src/cmd/link/internal/ld/testdata/deadcode/ifacemethod3.go
// if the type is "indirectly" converted to an interface // using reflection with a method descriptor as intermediate. package main import "reflect" type S int func (s S) M() { println("S.M") } type I interface{ M() } type T float64 func (t T) F(s S) {} func main() { var t T ft := reflect.TypeOf(t).Method(0).Type at := ft.In(1) v := reflect.New(at).Elem()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 15 21:49:19 UTC 2021 - 615 bytes - Viewed (0) -
test/fixedbugs/issue39541.go
// license that can be found in the LICENSE file. package main import "reflect" func sub(args []reflect.Value) []reflect.Value { type A struct { s int t int } return []reflect.Value{reflect.ValueOf(A{1, 2})} } func main() { f := reflect.MakeFunc(reflect.TypeOf((func() interface{})(nil)), sub).Interface().(func() interface{}) c := make(chan bool, 100) for i := 0; i < 100; i++ { go func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 19 02:11:35 UTC 2020 - 631 bytes - Viewed (0)