Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/slog
/ stringContainsFold
Function
stringContainsFold
sloggers/slogtest/assert/assert.go:87–92 ·
view source on GitHub ↗
(errs, sub string)
Source
from the content-addressed store, hash-verified
85
}
86
87
func
stringContainsFold(errs, sub string) bool {
88
errs = strings.ToLower(errs)
89
sub = strings.ToLower(sub)
90
91
return
strings.Contains(errs, sub)
92
}
Callers
1
ErrorContains
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected