github.com/getkalido/errcheck@v1.7.0-alpha/testdata/main2.go (about) 1 // This file exists so that we can check that multi-file packages work 2 package main 3 4 import "fmt" 5 6 type t struct{} 7 8 func (x t) a() error { 9 fmt.Println("this method returns an error") // EXCLUDED 10 //line myfile.txt:100 11 fmt.Println("this method also returns an error") // EXCLUDED 12 return nil 13 } 14 15 type u struct { 16 t t 17 }