MCPcopy Index your code
hub / github.com/coder/slog / Filter

Function Filter

internal/entryjson/slogjson.go:8–10  ·  view source on GitHub ↗

Filter filters the json field f from j.

(j, f string)

Source from the content-addressed store, hash-verified

6
7// Filter filters the json field f from j.
8func Filter(j, f string) string {
9 return regexp.MustCompile(`"`+f+`":[^,]+,`).ReplaceAllString(j, "")
10}

Callers 4

TestMakeFunction · 0.92
TestNoDriverValueFunction · 0.92
TestContextErrorsFunction · 0.92
TestStackdriverFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestMakeFunction · 0.74
TestNoDriverValueFunction · 0.74
TestContextErrorsFunction · 0.74
TestStackdriverFunction · 0.74