MCPcopy
hub / github.com/go-task/task / WithDebugFunc

Function WithDebugFunc

taskfile/reader.go:175–177  ·  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

173// caller wants to log debug messages from the [Reader]. By default, no debug
174// function is set and the logs are not written.
175func WithDebugFunc(debugFunc DebugFunc) ReaderOption {
176 return &debugFuncOption{debugFunc: debugFunc}
177}
178
179type debugFuncOption struct {
180 debugFunc DebugFunc

Callers 1

readTaskfileMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…