use multi-line import
This commit is contained in:
parent
459d16196a
commit
7f9b445752
@ -5,12 +5,14 @@
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
import "time"
|
"fmt"
|
||||||
import "math/rand"
|
"math/rand"
|
||||||
import "sync"
|
"runtime"
|
||||||
import "sync/atomic"
|
"sync"
|
||||||
import "runtime"
|
"sync/atomic"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
|
@ -9,10 +9,12 @@
|
|||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
import "time"
|
"fmt"
|
||||||
import "math/rand"
|
"math/rand"
|
||||||
import "sync/atomic"
|
"sync/atomic"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
// In this example our state will be owned by a single
|
// In this example our state will be owned by a single
|
||||||
// goroutine. This will guarantee that the data is never
|
// goroutine. This will guarantee that the data is never
|
||||||
|
Loading…
x
Reference in New Issue
Block a user