golangci-lint/test/testdata/ireturn_allow.go

14 lines
348 B
Go

// args: -Eireturn
// config_path: testdata/configs/ireturn.yml
package testdata
type (
IreturnAllowDoer interface{ Do() }
ireturnAllowDoer struct{}
)
func NewAllowDoer() IreturnAllowDoer { return new(ireturnAllowDoer) }
func (d *ireturnAllowDoer) Do() { /*...*/ }
func NewerAllowDoer() *ireturnAllowDoer { return new(ireturnAllowDoer) }