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...


Explain why type assertion is used in go language?



Explain why type assertion is used in go language?..

Answer / Ashish Ghildiyal

Type assertion in Go allows the programmer to check and manipulate values of a specific type within an interface{}. It is used when you want to check or extract the concrete underlying value behind an interface{}.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

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

1 Answers  


What is default value of a global and local variable in go?

1 Answers  


What is function closures in go pragramming?

1 Answers  


How you to access command line arguments passed to a go program?

1 Answers  


Write the syntax to create a function in go programming language?

1 Answers  


What is go interfaces?

1 Answers  


Is it recommended to use global variables in a program that implements goroutines?

1 Answers  


How you can write multiline strings in go?

1 Answers  


Is go (golang) a case sensitive language?

1 Answers  


What are methods in go?

1 Answers  


What is goroutine?

1 Answers  


What is a pointer in go?

1 Answers  


Categories