lib/Tools/gofmt
author wenzelm
Sat, 14 Dec 2024 21:47:20 +0100
changeset 81591 d570d215e380
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
syntax translations now work in a local theory context;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke gofmt within the Isabelle environment

if [ -z "$ISABELLE_GOEXE" ]; then
  echo "Missing Go installation: need to run \"isabelle go_setup\" first" >&2
  exit 2
else
  export GOROOT="$(platform_path "$ISABELLE_GOROOT")"
  exec "$ISABELLE_GOEXE/gofmt" "$@"
fi