Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. // Can be called outside the package
  6. func PublicFunc() {
  7. fmt.Println("Public function")
  8. }
  9.  
  10. // Cannot be called outside the package
  11. func privateFunc() {
  12. fmt.Println("Private function")
  13. }
  14.  
  15. func main(){ }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement