To me these two seems to be always equal. Then why bother putting dynamic type information into interface type? Since it can be obtained from dynamic value.
Asked
Active
Viewed 204 times
2
-
but if i don't have a value. – Jiang YD Jun 16 '16 at 05:59
-
The answer to your question is in my answer to this question: [Hiding nil values, understanding why golang fails here](http://stackoverflow.com/questions/29138591/hiding-nil-values-understanding-why-golang-fails-here) – icza Jun 16 '16 at 06:11
-
Often you only have a `reflect.Value` to work with, and you need the `reflect.Type`. – JimB Jun 16 '16 at 13:31