From 7f9b445752f5df7bd16f4542b1a5ecc58b620a00 Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Sun, 21 Oct 2012 19:25:40 -0400 Subject: [PATCH] use multi-line import --- examples/mutexes/mutexes.go | 14 ++++++++------ .../stateful-goroutines/stateful-goroutines.go | 10 ++++++---- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/examples/mutexes/mutexes.go b/examples/mutexes/mutexes.go index 6c87ed1..3cc6acc 100644 --- a/examples/mutexes/mutexes.go +++ b/examples/mutexes/mutexes.go @@ -5,12 +5,14 @@ package main -import "fmt" -import "time" -import "math/rand" -import "sync" -import "sync/atomic" -import "runtime" +import ( + "fmt" + "math/rand" + "runtime" + "sync" + "sync/atomic" + "time" +) func main() { diff --git a/examples/stateful-goroutines/stateful-goroutines.go b/examples/stateful-goroutines/stateful-goroutines.go index fe1b29b..5ffcbf6 100644 --- a/examples/stateful-goroutines/stateful-goroutines.go +++ b/examples/stateful-goroutines/stateful-goroutines.go @@ -9,10 +9,12 @@ package main -import "fmt" -import "time" -import "math/rand" -import "sync/atomic" +import ( + "fmt" + "math/rand" + "sync/atomic" + "time" +) // In this example our state will be owned by a single // goroutine. This will guarantee that the data is never