lib/Tools/gofmt
author nipkow
Wed, 21 Aug 2024 20:40:59 +0200
changeset 80734 7054a1bc8347
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
new version of time_fun that works for classes; define T_length automatically now

#!/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