
Generate names of the concrete types stored inside interface variables by fully parsing their runtime._type instead of simply using the str field. This allows delve to read the contents of an interface variable when the program imports multiple packages that have the same name. It also allows delve to correctly interpret some complex anonymous types. Fixes #455
14 lines
169 B
Go
14 lines
169 B
Go
package pkg
|
|
|
|
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
|
|
}
|