MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / Features

Method Features

util/cmd/load_fake_data/main.go:230–238  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

228}
229
230func (h *featuresHelper) RemoveFeature(featureKey string) {
231 delete(h.features, featureKey)
232}
233
234func (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

Callers 2

generateFeaturesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected