MCPcopy Create free account
hub / github.com/coder/envbuilder / Wrap

Function Wrap

log/log.go:42–48  ·  view source on GitHub ↗

Wrap wraps the provided LogFuncs into a single Func.

(fs ...Func)

Source from the content-addressed store, hash-verified

40
41// Wrap wraps the provided LogFuncs into a single Func.
42func Wrap(fs ...Func) Func {
43 return func(l Level, msg string, args ...any) {
44 for _, f := range fs {
45 f(l, msg, args...)
46 }
47 }
48}
49
50// Writer returns an io.Writer that logs all writes in a separate goroutine.
51// It is the responsibility of the caller to call the returned

Callers 1

envbuilderCmdFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected