- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInterfaceGet (0.3 sec)
-
src/reflect/all_test.go
// make sure tag strings are not part of element type typ = TypeOf(struct { d []uint32 `reflect:"TAG"` }{}).Field(0).Type testType(t, 14, typ, "[]uint32") } func TestInterfaceGet(t *testing.T) { var inter struct { E any } inter.E = 123.456 v1 := ValueOf(&inter) v2 := v1.Elem().Field(0) assert(t, v2.Type().String(), "interface {}") i2 := v2.Interface()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)