github.com/sbinet/go@v0.0.0-20160827155028-54d7de7dd62b/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  }