3 ms·
I think timtadh's jab about you not knowing your tools wasn't about the structs with a type field but about the .(float64) in case float64: fmt.Pri
by omaranto 15y ago
I think timtadh's jab about you not knowing your tools wasn't about the structs with a type field but about the .(float64) in
case float64:
fmt.Printf("%f\n", v.(float64))
which can be simplified to
case float64:
fmt.Printf("%f\n", v)