In a typical Golang AWS Lambda solution there are multiple main functions that need to be built separately.
This tool walks through your codebase and detects all main functions and builds them in parallel.
go get github.com/gtourkas/lambda-go-build
cd $GOPATH/src/github.com/gtourkas/lambda-go-build
go installAn invocation requires the base path of your lambdas source (the -s argument), and the destination (-d argument) for the output of the build process.
The directory structure of your lambdas, starting from the lambda source base path.
lambda-go-build -s ~/myrepo/src/lambdas -d ~/myrepo/build/lambdasOne can set the number of parallel builds through the --cb argument.