Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestStructOfGenericAlg (0.23 sec)

  1. src/reflect/all_test.go

    	}
    
    	st = StructOf([]StructField{{Name: "X", Tag: "x", Type: TypeOf([]int(nil))}})
    	v1 = New(st).Elem()
    	shouldPanic("", func() { _ = v1.Interface() == v1.Interface() })
    }
    
    func TestStructOfGenericAlg(t *testing.T) {
    	st1 := StructOf([]StructField{
    		{Name: "X", Tag: "x", Type: TypeOf(int64(0))},
    		{Name: "Y", Type: TypeOf(string(""))},
    	})
    	st := StructOf([]StructField{
    		{Name: "S0", Type: st1},
    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