()
| 228 | } |
| 229 | |
| 230 | func (h *featuresHelper) RemoveFeature(featureKey string) { |
| 231 | delete(h.features, featureKey) |
| 232 | } |
| 233 | |
| 234 | func (h featuresHelper) Features() []gcpspanner.WebFeature { |
| 235 | features := make([]gcpspanner.WebFeature, 0, len(h.features)) |
| 236 | for _, feature := range h.features { |
| 237 | features = append(features, feature) |
| 238 | } |
| 239 | slices.SortFunc(features, func(a, b gcpspanner.WebFeature) int { return cmp.Compare(a.FeatureKey, b.FeatureKey) }) |
| 240 | |
| 241 | return features |
no outgoing calls
no test coverage detected