In a node.js project, I'm using Go for a critical part of it that node isn't adequate enough to handle. I want to split the Go code into a sockets
package and a main
package, with sockets
containing required structs/interfaces for the main
package to run. The problem I'm having is that from what I can gather from Go's documentation, I can only use external packages like sockets
remotely from github/gopkg. I don't want to split the repository for the project into one containing the Go code and one containing node's. How can I make the sockets
package available for main
to import locally while making it possible to rebuild the binaries for the two packages if any updates to their source code are made?
Edit: importing the packages is no longer an issue, but rebuilding packages on update still remains