TypeString is nearly identical to reflect.Type.String, but has an additional option to specify that full type names be used.
(t reflect.Type, qualified bool)
| 14 | // TypeString is nearly identical to reflect.Type.String, |
| 15 | // but has an additional option to specify that full type names be used. |
| 16 | func TypeString(t reflect.Type, qualified bool) string { |
| 17 | return string(appendTypeName(nil, t, qualified, false)) |
| 18 | } |
| 19 | |
| 20 | func appendTypeName(b []byte, t reflect.Type, qualified, elideFunc bool) []byte { |
| 21 | // BUG: Go reflection provides no way to disambiguate two named types |
searching dependent graphs…