I want to test a few functions that are included in my main package, but my tests don\'t appear to be able to access those functions.
My sample main.go file looks li
Change package name from main to foobar in both sources. Move source files under src/foobar.
mkdir -p src/foobar mv main.go main_test.go src/foobar/
Make sure to set GOPATH to the folder where src/foobar resides.
export GOPATH=`pwd -P`
Test it with
go test foobar