Skip to main content
os() returns the name of the operating system on which Errand is running. Common values are "linux", "darwin", and "windows".

Signature

Example

Build platform-specific binaries and package them with the correct archive format:

Notes

  • Common values: linux, darwin (macOS), windows, freebsd.
  • To detect the CPU architecture, use arch.