github.com/gocuntian/go@v0.0.0-20160610041250-fee02d270bf8/misc/cgo/testshared/src/depBase/dep.go (about) 1 package depBase 2 3 var V int = 1 4 5 var HasMask []string = []string{"hi"} 6 7 type HasProg struct { 8 array [1024]*byte 9 } 10 11 type Dep struct { 12 X int 13 } 14 15 func (d *Dep) Method() int { 16 return 10 17 } 18 19 func F() int { 20 defer func() {}() 21 return V 22 }