- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestInterfacePointer (0.21 sec)
-
src/encoding/gob/codec_test.go
type PtrInterfaceItem struct { Str1 any // basic Str2 any // derived } // We'll send pointers; should receive values. // Also check that we can register T but send *T. func TestInterfacePointer(t *testing.T) { b := new(bytes.Buffer) str1 := "howdy" str2 := String("kiddo") item1 := &PtrInterfaceItem{ &str1, &str2, } // Register the type. Register(str2)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 19 23:03:14 UTC 2023 - 36.9K bytes - Viewed (0)