Advertisement
drpanwe

golang questions

Apr 11th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. 1. What type is this:
  2. var result []int
  3.  
  4. 2. When we can use '=' and when ':='
  5.  
  6. 3. Why would somebody want to use 'var' while they can do ':=' instead?
  7.  
  8. 4. Give two examples (with/out interface) for a var function type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement