The cp -r *.go */ command was failing because glob patterns don't work reliably in shell scripts. Use find to copy all .go files recursively while preserving directory structure.