Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myPackage
- // getSum is a private function
- // cannot be accessed outside the package
- func getSum(a int64, b int64) int64 {
- return a + b
- }
- // GetDouble ... takes an int64 input paramater
- // and returns an int64 value, double of the input value
- // can be accessed outside the package
- func GetDouble(a int64) int64 {
- return getSum(a, a)
- }
Add Comment
Please, Sign In to add comment