How would you print type of variable in go?



How would you print type of variable in go?..

Answer / Rahul Dev

To print the type of a variable in Go programming language, you can use the built-in function reflect.TypeOf on the variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

How arrays in go works differently then c ?

1 Answers  


Does go (golang) support type inheritance?

1 Answers  


Does go (golang) support pointer arithmetic?

1 Answers  


What is default value of a global variable in go?

1 Answers  


What is slice?

1 Answers  


How you to access command line arguments passed to a go program?

1 Answers  


What is a pointer in go?

1 Answers  


How pointer is represented in go?

1 Answers  


What is type casting in go programming?

1 Answers  


How you can do testing in go?

1 Answers  


What is go?

1 Answers  


What is difference between concurrent and parallel in golang?

1 Answers  


Categories