drop 0 from declaration (golint)

This commit is contained in:
Noah Zoschke 2018-01-26 09:21:58 -08:00
parent fd573c3095
commit de34a8a2af
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@ func main() {
// We'll use an unsigned integer to represent our
// (always-positive) counter.
var ops uint64 = 0
var ops uint64
// To simulate concurrent updates, we'll start 50
// goroutines that each increment the counter about

View File

@ -23,8 +23,8 @@ func main() {
// We'll keep track of how many read and write
// operations we do.
var readOps uint64 = 0
var writeOps uint64 = 0
var readOps uint64
var writeOps uint64
// Here we start 100 goroutines to execute repeated
// reads against the state, once per millisecond in

View File

@ -37,8 +37,8 @@ type writeOp struct {
func main() {
// As before we'll count how many operations we perform.
var readOps uint64 = 0
var writeOps uint64 = 0
var readOps uint64
var writeOps uint64
// The `reads` and `writes` channels will be used by
// other goroutines to issue read and write requests,