Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package abc
- import "fmt"
- // This will be exported. It is essentially public
- func SomeFunction1(message string) { //
- fmt.Println(message)
- }
- // This will not be exported. It is essentially private and inaccessible to
- // packages that import package abc. All because it is lowercased!
- func someFunction2(message string) {
- fmt.Println(message)
- }
Add Comment
Please, Sign In to add comment