Advertisement
Guest User

Untitled

a guest
Apr 25th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // $ tree
  2. // .
  3. // ├── main.go
  4. // ├── second.go
  5.  
  6. // ```go build main.go```
  7. // or
  8. // ```go build .```
  9.  
  10.  
  11. // file: main.go
  12. package main
  13.  
  14. import (
  15. "fmt"
  16. )
  17.  
  18. func main() {
  19. fmt.Println("this is package MAIN")
  20. }
  21.  
  22. // file: second.go
  23. package main
  24.  
  25. import (
  26. "fmt"
  27. )
  28.  
  29. func main() {
  30. fmt.Println("this is package SECOND")
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement