
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.
22 lines
232 B
Go
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
|
|
)
|