Skip to content

Commit

Permalink
Merge pull request #410 from xushiwei/e
Browse files Browse the repository at this point in the history
qfmt
  • Loading branch information
xushiwei committed Jul 5, 2020
2 parents 8fe7537 + e969a4c commit 1055cd3
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions parser/testdata/mytest.gop
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package testdata

import (
"os"
"go/token"
"go/token"
"os"
)

var stmtStart = map[token.Token]bool{
Expand Down Expand Up @@ -49,30 +49,30 @@ type FileSystem interface {
type IF = FileSystem

type Foo struct {
a, b map[string]struct{}
a, b map[string]struct{}
}

func (p *Foo) bar() {
}

func init() {
f, err := os.Open("a")
if err != nil {
return
}
defer f.Close()
f, err := os.Open("a")
if err != nil {
return
}
defer f.Close()

ch := make(chan bool, 100)
select {
case <-ch:
println("1")
case ch <- true:
println("2")
}
ch := make(chan bool, 100)
select {
case <-ch:
println("1")
case ch <- true:
println("2")
}

go func(fs FileSystem) {
if foo, ok := fs.(*Foo); ok {
println(foo)
}
}(nil)
go func(fs FileSystem) {
if foo, ok := fs.(*Foo); ok {
println(foo)
}
}(nil)
}

0 comments on commit 1055cd3

Please sign in to comment.