github.com/vanstinator/golangci-lint@v0.0.0-20240223191551-cc572f00d9d1/test/testdata/inamedparam_skip_single_param.go (about) 1 //golangcitest:args -Einamedparam 2 //golangcitest:config_path testdata/configs/inamedparam_skip_single_param.yml 3 package testdata 4 5 import "context" 6 7 type NamedParam interface { 8 Void() 9 10 SingleParam(string) error 11 12 WithName(ctx context.Context, number int, toggle bool) (bool, error) 13 14 WithoutName( 15 context.Context, // want "interface method WithoutName must have named param for type context.Context" 16 int, // want "interface method WithoutName must have named param for type int" 17 ) 18 }