Guest User

Untitled

a guest
Feb 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. package abc
  2.  
  3. import "fmt"
  4.  
  5. // This will be exported. It is essentially public
  6. func SomeFunction1(message string) { //
  7. fmt.Println(message)
  8. }
  9.  
  10. // This will not be exported. It is essentially private and inaccessible to
  11. // packages that import package abc. All because it is lowercased!
  12. func someFunction2(message string) {
  13. fmt.Println(message)
  14. }
Add Comment
Please, Sign In to add comment