How can variable type be checked at the runtime?



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

Post New Answer

More Go Programming Language Interview Questions

List the looping constructs in go language.

1 Answers  


Does go (golang) support type inheritance?

1 Answers  


Is “maps” value types?

1 Answers  


What type assertion is used for and how it does it?

1 Answers  


How we can print type of a variable in go programming?

1 Answers  


What is goroutine in go programming language?

1 Answers  


What is the usage of goto statement in go programming language?

1 Answers  


What are packages in go language?

1 Answers  


How a pointer is represented in go?

1 Answers  


What is go interfaces?

1 Answers  


What are the benefits of using go programming?

1 Answers  


What is gopath environment variable in go programming?

1 Answers  


Categories