Skip to content

Instantly share code, notes, and snippets.

@romanitalian
Created April 15, 2019 06:54
Show Gist options
  • Save romanitalian/e64b98fa18d0135f157e98b6ac0eb61a to your computer and use it in GitHub Desktop.
Save romanitalian/e64b98fa18d0135f157e98b6ac0eb61a to your computer and use it in GitHub Desktop.
"go build main.go" vs "go build ."
// $ tree
// .
// ├── main.go
// ├── second.go
// ```go build main.go```
// or
// ```go build .```
// file: main.go
package main
import (
"fmt"
)
func main() {
fmt.Println("this is package MAIN")
}
// file: second.go
package main
import (
"fmt"
)
func main() {
fmt.Println("this is package SECOND")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment