github.com/undoio/delve@v1.9.0/_fixtures/internal/dir0/pkg/main.go (about)

     1  package pkg
     2  
     3  var A = 0
     4  
     5  type SomeType struct {
     6  	X float64
     7  }
     8  
     9  func (s *SomeType) AMethod(x int) int {
    10  	return x + 3
    11  }
    12  
    13  func (s *SomeType) AnotherMethod(x int) int {
    14  	return x + 4
    15  }
    16  
    17  var SomeVar SomeType
    18  
    19  const (
    20  	SomeConst int = 2
    21  )