github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/errorcheck/test/test2.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") // UNCHECKED 10 //line myfile.txt:100 11 fmt.Println("this method also returns an error") // UNCHECKED 12 return nil 13 } 14 15 type u struct { 16 t t 17 }