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 slice in go?
How to create a function in go?
What is string literals?
How many ways we can pass parameters to a function in go programming?
What is workspace in go?
What is go (golang) programming language?
What is the default value of a pointer variable in go?
What is range keyword in go?
What are maps in go?
What is type assertion in go?
What is workspace in go programming?
Can we declare a class in go?