How to compile Go program consisting of multiple files?
New Way (Recommended): Please take a look at this answer. Old Way: Supposing you’re writing a program called myprog : Put all your files in a directory like this myproject/go/src/myprog/xxx.go Then add myproject/go to GOPATH And run go install myprog This way you’ll be able to add other packages and programs in myproject/go/src if you … Read more