#!/bin/sh # script/fmt: format all files (writes). set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" # Where script/bootstrap installs Go; it cannot put it on our PATH. PATH="$HOME/.local/go/bin:$PATH" main() { cd "$ROOT" go fmt ./... } main "$@"