Open
Description
Hello,
This might be a real edge case, but just wanting to share.
When for example, missing a package main
you will get a panic:
panic: runtime error: invalid memory address or nil pointer dereference
func TestDecorator(t *testing.T) {
code := `import "github.com/MyPackage/Name/package1"
func main() {
fmt.Println("Hello!")
}`
decorator.Parse(code)
}
I think earlier versions did not fail this test, and feel like it should gracefully return an error.
Metadata
Metadata
Assignees
Labels
No labels