What Reflect can be used for. Reflection can be used to examine type and value info at runtime. How to get the actual type of an interface. package main import ( "fmt" "reflect" ) func typeOf(vals ...interface{}) { for _, v := range val...
Markdown supported · ⌘↵ to post
No responses yet.