I'm relatively new to Go and I've recently created a project that's going up on GitHub. I've tried to follow guides but there's a pressing question of why my binaries end up in src/
?
My layout is like this:
ssm/ - Name of project
LICENSE
README.md
src/ - Source Code
files.go - All my source code is here.
src - The compiled binary ends up here
bin/ - Binaries
I set my $GOPATH
to ~/Documents/Programming/Go/
. From my gopath, I can't type go build ssm
because it cannot find package
. If I cd into the directory, it complains it can't load package: package .: no Go source files
.
I have to actually go into src and compile there, which means the binary isn't in bin/
.
What am I doing wrong?