Added in a pre-commit hook to run go fmt.

Added in a pre-commit hook to run go fmt on all go files that are committed and fail the commit if any syntax errors or lack of formatting are detected.