MCPcopy Index your code
hub / github.com/go-task/task / Options

Method Options

taskrc/reader.go:37–41  ·  view source on GitHub ↗

Options loops through the given [ReaderOption] functions and applies them to the [Reader].

(opts ...ReaderOption)

Source from the content-addressed store, hash-verified

35// Options loops through the given [ReaderOption] functions and applies them to
36// the [Reader].
37func (r *Reader) Options(opts ...ReaderOption) {
38 for _, opt := range opts {
39 opt.ApplyToReader(r)
40 }
41}
42
43// WithDebugFunc sets the debug function to be used by the [Reader]. If set,
44// this function will be called with debug messages. This can be useful if the

Callers 1

NewReaderFunction · 0.95

Calls 1

ApplyToReaderMethod · 0.65

Tested by

no test coverage detected