gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/golint/testdata/common-methods.go (about) 1 // Test that we don't nag for comments on common methods. 2 // OK 3 4 // Package pkg ... 5 package pkg 6 7 import "net/http" 8 9 // T is ... 10 type T int 11 12 func (T) Error() string { return "" } 13 func (T) String() string { return "" } 14 func (T) ServeHTTP(w http.ResponseWriter, r *http.Request) {} 15 func (T) Read(p []byte) (n int, err error) { return 0, nil } 16 func (T) Write(p []byte) (n int, err error) { return 0, nil }