Teach it about golang
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user