Teach it about golang

This commit is contained in:
Michael Wolf
2022-10-13 18:43:40 -05:00
parent 969f6edc39
commit ecf60a5f2f
3 changed files with 22 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ elif [[ $file_type == "python" ]]; then
out=$(pipx run black $file 2>/dev/null && pipx run isort $file 2>/dev/null)
retval="$?"
success_retval=0
elif [[ $file_type == "golang" ]] ; then
out=$(gofmt -w "$file" 2>/dev/null)
retval="$?"
success_retval=0
else
echo -n "ignoring"
exit 0