Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 21 of 21 for NonNil (0.52 sec)

  1. src/reflect/all_test.go

    	// These implement IsNil.
    	// Wrap in extra struct to hide interface type.
    	doNil := []any{
    		struct{ x *int }{},
    		struct{ x any }{},
    		struct{ x map[string]int }{},
    		struct{ x func() bool }{},
    		struct{ x chan int }{},
    		struct{ x []string }{},
    		struct{ x unsafe.Pointer }{},
    	}
    	for _, ts := range doNil {
    		ty := TypeOf(ts).Field(0).Type
    		v := Zero(ty)
    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