chore: gofmt the Go modules and gate formatting in CI (#1285)