gotools/cmd/deadcode/testdata/jsonflag.txtar

# Very minimal test of -json flag.

deadcode -json example.com/p

 want `"Path": "example.com/p",`
 want `"Name": "DeadFunc",`
 want `"Generated": false`
 want `"Line": 5,`
 want `"Col": 6`

-- go.mod --
module example.com
go 1.18

-- p/p.go --
package main

func main() {}

func DeadFunc() {}

type T int
func (*T) DeadMethod() {}