aboutsummaryrefslogtreecommitdiffstats
path: root/defererr.go
diff options
context:
space:
mode:
Diffstat (limited to 'defererr.go')
-rw-r--r--defererr.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/defererr.go b/defererr.go
index 87697a3..c7816e9 100644
--- a/defererr.go
+++ b/defererr.go
@@ -37,7 +37,12 @@ func run(pass *analysis.Pass) (interface{}, error) {
funcReturnsError := false
for _, returnVal := range funcDecl.Type.Results.List {
- fmt.Printf("returnVal: %#v\n", returnVal.Type)
+ fmt.Printf("returnVal: %#v\n", returnVal)
+ for _, ident := range returnVal.Names {
+ fmt.Printf("returnVal name: %#v\n", ident)
+ }
+
+ fmt.Printf("returnVal Type: %#v\n", returnVal.Type)
returnIdent, ok := returnVal.Type.(*ast.Ident)
if !ok {
@@ -167,6 +172,8 @@ func run(pass *analysis.Pass) (interface{}, error) {
// fmt.Printf("returnVal: %#v\n", returnVal)
// }
+ fmt.Println()
+
return true
},
)