How can variable type be checked at the runtime?
Answer / Rahul Datta
Go does not have dynamic typing. Variables have their types checked during compile-time, but there is a runtime interface named Type assertions which allows checking the type of a value at runtime.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is function closures in go pragramming?
Is “maps” value types?
What a modular programming language is?
What is go programming language?
Why should one use go programming language?
How would you print type of variable in go?
Is it recommended to use global variables in a program that implements goroutines?
Is go a case sensitive language?
Does go (golang) support operator overloading?
What are the several built-in supports in go?
What is cgo golang?
What is the default value of a local variable in go?