goprotobuf: Run gofmt over the tree.
R=r
CC=golang-dev
http://codereview.appspot.com/5294047
diff --git a/proto/all_test.go b/proto/all_test.go
index 36cd337..78181fd 100644
--- a/proto/all_test.go
+++ b/proto/all_test.go
@@ -1123,7 +1123,6 @@
}
}
-
// Test that enums work. Checks for a bug introduced by making enums
// named types instead of int32: newInt32FromUint64 would crash with
// a type mismatch in reflect.PointTo.
diff --git a/proto/decode.go b/proto/decode.go
index 9a64221..815e825 100644
--- a/proto/decode.go
+++ b/proto/decode.go
@@ -420,7 +420,7 @@
// The goal is modest amortization and allocation
// on at least 16-byte boundaries.
const (
- boolPoolSize = 16
+ boolPoolSize = 16
int32PoolSize = 8
int64PoolSize = 4
)
diff --git a/proto/lib.go b/proto/lib.go
index a24c780..26d84ae 100644
--- a/proto/lib.go
+++ b/proto/lib.go
@@ -198,9 +198,9 @@
index int // write point
freelist [10][]byte // list of available buffers
nfreelist int // number of free buffers
- ptr uintptr // used to avoid a heap allocation.
+ ptr uintptr // used to avoid a heap allocation.
// pools of basic types to amortize allocation.
- bools []bool
+ bools []bool
int32s []int32
int64s []int64
}
diff --git a/proto/properties.go b/proto/properties.go
index e74674d..cec84ba 100644
--- a/proto/properties.go
+++ b/proto/properties.go
@@ -115,8 +115,8 @@
tagbuf [8]byte
stype reflect.Type
- dec decoder
- valDec valueDecoder // set for bool and numeric types only
+ dec decoder
+ valDec valueDecoder // set for bool and numeric types only
// If this is a packable field, this will be the decoder for the packed version of the field.
packedDec decoder
diff --git a/proto/text_test.go b/proto/text_test.go
index 81aaca6..563a23c 100644
--- a/proto/text_test.go
+++ b/proto/text_test.go
@@ -221,5 +221,3 @@
}
}
}
-
-