Golang: Modules and Build Tools

// an executable
$GOPATH/github.com/you/project1
-> $GOPATH/github.com/you/project1/package_main
-> $GOPATH/github.com/you/project1/package1
-> $GOPATH/github.com/user_a/project1/package2 // imports project3
-> $GOPATH/github.com/user_a/project1/package3
// an executable
$GOPATH/github.com/user_b/project2
-> $GOPATH/github.com/user_b/project2/main_package
-> $GOPATH/github.com/user_b/project2/package_a
-> $GOPATH/github.com/user_b/project2/package_b
// a library
$GOPATH/github.com/user_c/project3
-> $GOPATH/github.com/user_b/project2/package_a
-> $GOPATH/github.com/user_b/project2/package_b
$GOPATH/github.com/user_b/project2
-> $GOPATH/github.com/user_b/project2/main_package
-> $GOPATH/github.com/user_b/project2/package_a
-> $GOPATH/github.com/user_b/project2/package_b
// a library
$GOPATH/github.com/user_c/project3
-> $GOPATH/github.com/user_b/project2/package_a
-> $GOPATH/github.com/user_b/project2/package_b
...$HOME/somewhere_you_like/project
-> $HOME/somewhere_you_like/project/main_package
-> $HOME/somewhere_you_like/project/package_a
-> $HOME/somewhere_you_like/project/package_b

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store