Guest User

Untitled

a guest
Jul 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. package myPackage
  2.  
  3. // getSum is a private function
  4. // cannot be accessed outside the package
  5. func getSum(a int64, b int64) int64 {
  6. return a + b
  7. }
  8.  
  9. // GetDouble ... takes an int64 input paramater
  10. // and returns an int64 value, double of the input value
  11. // can be accessed outside the package
  12. func GetDouble(a int64) int64 {
  13. return getSum(a, a)
  14. }
Add Comment
Please, Sign In to add comment