for bin in $(find . -name main.go); do
    extBin=$(echo $bin | sed 's/\/main\.go//g')
    go build -o build/$(basename $extBin) $bin
done