create []float in go lang code example Example: how to declare a float in golang var num float64 = 1.5