MCPcopy Create free account
hub / github.com/go-task/task / WithDebugFunc

Function WithDebugFunc

taskrc/reader.go:47–49  ·  view source on GitHub ↗

WithDebugFunc sets the debug function to be used by the [Reader]. If set, this function will be called with debug messages. This can be useful if the caller wants to log debug messages from the [Reader]. By default, no debug function is set and the logs are not written.

(debugFunc DebugFunc)

Source from the content-addressed store, hash-verified

45// caller wants to log debug messages from the [Reader]. By default, no debug
46// function is set and the logs are not written.
47func WithDebugFunc(debugFunc DebugFunc) ReaderOption {
48 return &debugFuncOption{debugFunc: debugFunc}
49}
50
51type debugFuncOption struct {
52 debugFunc DebugFunc

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…