delve/_fixtures/vendor/dir0/pkg/main.go
aarzilli 2a2d1040e9 proc: allow "package/path".varname syntax
If the application being debugged imports two packages with the same
name (but different paths) there was no way to disambiguate the two,
since the character '/' can not appear inside a go identifier.

By allowing users to use a string literal as the package name a package
path can be specified.
2018-06-14 09:29:23 -07:00

22 lines
232 B
Go

package pkg
var A = 0
type SomeType struct {
X float64
}
func (s *SomeType) AMethod(x int) int {
return x + 3
}
func (s *SomeType) AnotherMethod(x int) int {
return x + 4
}
var SomeVar SomeType
const (
SomeConst int = 2
)