gofmt
This commit is contained in:
parent
5242d9c677
commit
fe4b7ffd45
@ -9,9 +9,8 @@ import "fmt"
|
||||
func f(n int) {
|
||||
for i := 0; i < 10; i++ {
|
||||
fmt.Println(n, ":", i)
|
||||
breakTime := time.Duration(rand.Intn(150)))
|
||||
breakTime := time.Duration(rand.Intn(150))
|
||||
time.Sleep(time.Millisecond * breakTime)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,8 @@ func generateWrites(writes chan *writeOp) {
|
||||
for {
|
||||
key := randKey()
|
||||
val := randVal()
|
||||
write := &writeOp{key: key,
|
||||
write := &writeOp{
|
||||
key: key,
|
||||
val: val,
|
||||
resp: make(chan bool)}
|
||||
writes <- write
|
||||
|
@ -6,7 +6,7 @@ import "fmt"
|
||||
|
||||
func main() {
|
||||
arr := []byte("some bytes")
|
||||
str := string([]byte{'a',' ','s','t','r','i','n','g'})
|
||||
str := string([]byte{'s', 't', 'r', 'i', 'n', 'g'})
|
||||
fmt.Println(arr)
|
||||
fmt.Println(str)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user