CallIface calls F() on v
(v Iface)
| 26 | |
| 27 | // CallIface calls F() on v |
| 28 | func CallIface(v Iface) { |
| 29 | cpkg.Printf("iface.CallIface...\n") |
| 30 | v.F() |
| 31 | cpkg.Printf("iface.CallIface... [DONE]\n") |
| 32 | } |
| 33 | |
| 34 | // by default, interface{} is converted to string (most universal type) |
| 35 | func IfaceString(str interface{}) { |