Skip to main content
arch() returns the CPU architecture of the machine running Errand. Common values are "amd64" and "arm64".

Signature

Example

Build and name the release binary for the current platform, automatically picking up the right architecture:
On an Apple Silicon Mac, computed.binary_name becomes app-1.4.2-darwin-arm64.

Notes

  • Common values: amd64 (x86-64), arm64 (64-bit ARM), arm, 386.
  • To detect the operating system, use os.