Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for yp (0.14 sec)

  1. src/reflect/all_test.go

    	check("SliceOf", SliceOf(TypeOf(T{})))
    }
    
    type XM struct{ _ bool }
    
    func (*XM) String() string { return "" }
    
    func TestPtrToMethods(t *testing.T) {
    	var y struct{ XM }
    	yp := New(TypeOf(y)).Interface()
    	_, ok := yp.(fmt.Stringer)
    	if !ok {
    		t.Fatal("does not implement Stringer, but should")
    	}
    }
    
    func TestMapAlloc(t *testing.T) {
    	m := ValueOf(make(map[int]int, 10))
    	k := ValueOf(5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top