Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In go language how you can check variable type at runtime?



In go language how you can check variable type at runtime?..

Answer / Surya Kumar Raushan

To check the variable type at runtime in Go, you can use the reflect package. Reflect.TypeOf(variable) will return the type of the variable.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

Does go (golang) support type inheritance?

1 Answers  


Is it true that short variable declaration := can be used only inside a function?

1 Answers  


How will you access command line arguments in a go program?

1 Answers  


Does go support generic programming?

1 Answers  


What are packages in go program?

1 Answers  


What is range keyword in go?

1 Answers  


Why does my go process use a lot of virtual memory?

1 Answers  


How you can write multiline strings in go?

1 Answers  


What a modular programming language is?

1 Answers  


Why type assertion is used in go language?

1 Answers  


What are nil pointers?

1 Answers  


In go language how you can check variable type at runtime?

1 Answers  


Categories