We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f37361 commit 93699e7Copy full SHA for 93699e7
pkg/golinters/iface/testdata/unused.go
@@ -2,19 +2,21 @@
2
//golangcitest:config_path testdata/unused.yml
3
package testdata
4
5
+import "context"
6
+
7
type User struct {
8
ID string
9
Name string
10
}
11
12
type UserRepository interface { // want "interface UserRepository is declared but not used within the package"
- UserOf(id string) (*User, error)
13
+ UserOf(ctx context.Context, id string) (*User, error)
14
15
16
type UserRepositorySQL struct {
17
18
-func (r *UserRepositorySQL) UserOf(id string) (*User, error) {
19
+func (r *UserRepositorySQL) UserOf(ctx context.Context, id string) (*User, error) {
20
return nil, nil
21
22
0 commit comments