mirror of
https://github.com/scratchfoundation/golangci-lint.git
synced 2025-08-21 10:48:44 -04:00
19 lines
489 B
Go
19 lines
489 B
Go
|
//golangcitest:args -Einamedparam
|
||
|
//golangcitest:config_path testdata/configs/inamedparam_skip_single_param.yml
|
||
|
package testdata
|
||
|
|
||
|
import "context"
|
||
|
|
||
|
type NamedParam interface {
|
||
|
Void()
|
||
|
|
||
|
SingleParam(string) error
|
||
|
|
||
|
WithName(ctx context.Context, number int, toggle bool) (bool, error)
|
||
|
|
||
|
WithoutName(
|
||
|
context.Context, // want "interface method WithoutName must have named param for type context.Context"
|
||
|
int, // want "interface method WithoutName must have named param for type int"
|
||
|
)
|
||
|
}
|