Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
8
func
Filter(j, f string) string {
9
return
regexp.MustCompile(`
"`+f+`"
:[^,]+,`).ReplaceAllString(j,
""
)
10
}
Callers
4
TestMake
Function · 0.92
TestNoDriverValue
Function · 0.92
TestContextErrors
Function · 0.92
TestStackdriver
Function · 0.92
Calls
no outgoing calls
Tested by
4
TestMake
Function · 0.74
TestNoDriverValue
Function · 0.74
TestContextErrors
Function · 0.74
TestStackdriver
Function · 0.74