You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func NewServer(addr string) *server { // want "NewServer function return Server interface at the 1st result, abstract a single concrete implementation of \\*server"
16
+
return newServer(addr)
17
+
}
18
+
19
+
func NewServer2(addr string) server { // want "NewServer2 function return Server interface at the 1st result, abstract a single concrete implementation of server"
20
+
return server{addr: addr}
21
+
}
22
+
23
+
func NewServer3(addr string) *server { // want "NewServer3 function return Server interface at the 1st result, abstract a single concrete implementation of \\*server"
24
+
return &server{addr: addr}
25
+
}
26
+
27
+
func newServer(addr string) *server {
28
+
return &server{addr: addr}
29
+
}
30
+
31
+
type secureServer struct {
32
+
addr string
33
+
}
34
+
35
+
func (ss *secureServer) Serve() error {
36
+
return nil
37
+
}
38
+
39
+
func NewSecureServer(addr string) *secureServer { // want "NewSecureServer function return Server interface at the 1st result, abstract a single concrete implementation of \\*secureServer"
func StartSpanFromContext2(ctx context.Context) (*span, error) { // want "StartSpanFromContext2 function return Span interface at the 1st result, abstract a single concrete implementation of \\*span"
func NewServer2(addr string) server { // want "NewServer2 function return Server interface at the 1st result, abstract a single concrete implementation of server"
func NewDoer() *DoerImpl { // want "NewDoer function return Doer interface at the 1st result, abstract a single concrete implementation of \\*DoerImpl"
0 commit comments