Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var same int = 12 // normal variable declaration
- same := 12 // short variable declaration
- a := 1
- b := 2
- a,b := check() // Throws exception.
- // Cannot use short variable declaration if there is no new variables
- b2 := 2
- a2, b2 := check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement