diff options
Diffstat (limited to 'gocapturedrefrace.go')
-rw-r--r-- | gocapturedrefrace.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gocapturedrefrace.go b/gocapturedrefrace.go index 1e00d21..9544d48 100644 --- a/gocapturedrefrace.go +++ b/gocapturedrefrace.go @@ -51,6 +51,12 @@ func run(pass *analysis.Pass) (interface{}, error) { } func checkClosure(pass *analysis.Pass, funcLit *ast.FuncLit) { + fmt.Print("Params: ") + for _, field := range funcLit.Type.Params.List { + fmt.Printf("%#v, ", field.Names[0].Name) + } + fmt.Println() + ast.Inspect( funcLit, func(node ast.Node) bool { |