MCPcopy
hub / github.com/grafana/dskit / isGzip

Function isGzip

runtimeconfig/manager.go:304–306  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

302}
303
304func isGzip(data []byte) bool {
305 return len(data) > 2 && data[0] == 0x1f && data[1] == 0x8b
306}
307
308func mergeConfigMaps(a, b map[string]interface{}, path string) (_ map[string]interface{}, err error) {
309 out := make(map[string]interface{}, len(a))

Callers 1

unmarshalMaybeGzippedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected