MCPcopy Index your code
hub / github.com/jetify-com/devbox / Safe

Function Safe

internal/redact/redact.go:172–174  ·  view source on GitHub ↗

Safe marks a value as safe for including in a redacted error.

(a any)

Source from the content-addressed store, hash-verified

170
171// Safe marks a value as safe for including in a redacted error.
172func Safe(a any) any {
173 return safe{a}
174}
175
176// safeError is an error that can redact its message.
177type safeError struct {

Callers 15

InfoMethod · 0.92
parseInfoFunction · 0.92
parseURLRefFunction · 0.92
PrintDevEnvMethod · 0.92
DaemonVersionFunction · 0.92
CurrentConfigFunction · 0.92
appendConfigIncludeFunction · 0.92
AttributePathMethod · 0.92
writeFromTemplateFunction · 0.92
GenerateDevcontainerMethod · 0.92
nixcache.goFile · 0.92
CachesFunction · 0.92

Calls

no outgoing calls

Tested by 3

ExampleErrorfFunction · 0.68
TestErrorfFunction · 0.68
TestErrorfWrapErrorfFunction · 0.68