I have a small program that consists of three files, all belonging to the same package (main), but when I do \"go build main.go\" the build doesn\'t succeed. When it was jus
You can use
go build *.go go run *.go
both will work also you may use
go build . go run .