| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| ) | |
| func main() { | |
| var x float64 = 3.4 | |
| fmt.Println(reflect.TypeOf(x)) // float64 | |
| fmt.Println(reflect.ValueOf(x)) // <float64 Value> | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment