#!/bin/bash
if test -n "$(gofmt -l "$@")";
then
echo "[ERROR]: gofmt check errors"
gofmt -l "$@" | xargs -n1 printf ' > %s\n'
exit 1
fi