go-graphite / carbonapi

Usage of both value and pointer receivers GO-W1029
Anti-pattern
Major
2 occurrences in this check
Type "ConfigType" has both value and pointer receivers
136	}
137}
138
139func (c *ConfigType) SetZipper(zipper zipper.CarbonZipper) (err error) {140	c.ZipperInstance = zipper
141	c.Evaluator, err = expr.NewEvaluator(c.Limiter, c.ZipperInstance)
142	return
Type "ConfigType" has both value and pointer receivers
127}
128
129// skipcq: CRT-P0003
130func (c ConfigType) String() string {131	data, err := json.Marshal(c)
132	if err != nil {
133		return "Failed to marshal config: " + err.Error()