Sublime Forum

Building golang for multiple go files


Hi, I am new to Go and Sublime and working through a course. I have a simple question. with a single main.go, its fine and I can build the file using the standard go build option.

However when I split this into two files main.go and web.go, it wont run because its not seeing both files (they are in the same directory). It works fine in the terminal.

GOPATH is set to the top level directory.

Thanks for the help