353}
354
355func (it iterator) Close() (errs []error) {
356 it = it.FilterListener()357
358 wg := sync.WaitGroup{}
359 wg.Add(it.Len())
121}
122
123func (it iterator) ServeHTTP(fnNewHandler func(Server) http.Handler, fnArgs ...Arg) error {
124 it = it.FilterListener()125
126 cfg := args{}
127 cfg.defaultize()
246}
247
248func (it iterator) ServeGRPC(fnNewServer func(s Server, opts ...grpc.ServerOption) *grpc.Server, fnArgs ...Arg) error {
249 it = it.FilterListener()250
251 cfg := args{}
252 cfg.defaultize()
A method that modifies its receiver value can have undesired behavior. The modification can also be the root of a bug because the actual value receiver could be a copy of that used at the calling site. This rule warns when a method modifies its receiver.
type data struct {
num int
key *string
items map[string]bool
}
func (d data) vmethod() {
d.num = 8
}
type data struct {
num int
key *string
items map[string]bool
}
func (d *data) vmethod() {
d.num = 8
}