convox / convox

Usage of both value and pointer receivers GO-W1029
Anti-pattern
Major
16 hours agoa year old
Type "Services" has both value and pointer receivers
409	})
410}
411
412func (ss Services) Routable() Services {413	return ss.Filter(func(s Service) bool {
414		return s.Port.Port > 0
415	})
Type "Services" has both value and pointer receivers
403	return fss
404}
405
406func (ss Services) InternalRouter() Services {407	return ss.Filter(func(s Service) bool {
408		return s.InternalRouter
409	})
Type "Services" has both value and pointer receivers
390	})
391}
392
393func (ss Services) Filter(fn func(s Service) bool) Services {394	fss := Services{}
395
396	// skipcq
Type "Services" has both value and pointer receivers
384	return srs
385}
386
387func (ss Services) External() Services {388	return ss.Filter(func(s Service) bool {
389		return !s.Internal && !s.InternalRouter
390	})
Type "Timers" has both value and pointer receivers
565	return marshalMapSlice(v)
566}
567
568func (v *Timers) UnmarshalYAML(unmarshal func(interface{}) error) error {569	return unmarshalMapSlice(unmarshal, v)
570}
571