Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Go Binary Cross-Compilation Workflow

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [GO_VERSION]
  • [BINARY_NAME]
  • [OS_ARCH_PAIRS]
go-binary-cross-compilation-workflow.txt
As a Backend Engineer, generate a GitHub Actions workflow for a Go application. Requirements: 1) Use Go [GO_VERSION]. 2) Implement a matrix build to cross-compile [BINARY_NAME] for multiple platforms defined in [OS_ARCH_PAIRS] (e.g., linux/amd64, darwin/arm64). 3) Run 'go vet' and 'staticcheck'. 4) Calculate checksums (sha256) for each binary. 5) Upload all binaries and checksums to a GitHub Release.

Example Output

"A robust Go CI/CD YAML utilizing matrix builds for artifacts and automated release management for distribution."