Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run loads specified packages and checks if there is any unchecked return of the target type (in the target package).
Example ¶
if err := Run([]string{"testdata/test.go"}, "testdata/test.go", "Error"); err != nil { fmt.Printf("failed to run return check: %s\n", err) return }
Output: testdata/test.go:22:3 g() testdata/test.go:23:3 h() testdata/test.go:24:11 x, _ := h() testdata/test.go:29:6 go g() testdata/test.go:30:9 defer h() failed to run return check: found an unchecked return value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.