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


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



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

Answer / Shashank Mohan Shukla

No, the short variable declaration (:=) can be used both in functions and outside of them at package level.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

How you can write multiline strings in go?

1 Answers  


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

1 Answers  


What are the advantages/ benefits of go programming language?

1 Answers  


Is “maps” value types?

1 Answers  


Explain what a modular programming language is?

1 Answers  


How to swap two values in golang?

1 Answers  


What is default value of a global variable in go?

1 Answers  


What is syntax like in go programming language?

1 Answers  


How to write multiple strings in go programming?

1 Answers  


What are methods in go?

1 Answers  


How can you distribute tasks in golang?

1 Answers  


What are the benefits of using go programming?

1 Answers  


Categories