lib/Tools/gofmt
author wenzelm
Mon, 03 Feb 2025 14:15:37 +0100
changeset 82065 f178475f274d
parent 80013 f1686f71dffc
permissions -rwxr-xr-x
update to mlton-20241230-1 using recent builds from https://sourceforge.net/projects/mlton;

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