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 |
List the looping constructs in go language.
Does go (golang) support type inheritance?
Is “maps” value types?
What type assertion is used for and how it does it?
How we can print type of a variable in go programming?
What is goroutine in go programming language?
What is the usage of goto statement in go programming language?
What are packages in go language?
How a pointer is represented in go?
What is go interfaces?
What are the benefits of using go programming?
What is gopath environment variable in go programming?