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

Method Options

taskfile/snippet.go:81–85  ·  view source on GitHub ↗

Options loops through the given [SnippetOption] functions and applies them to the [Snippet].

(opts ...SnippetOption)

Source from the content-addressed store, hash-verified

79// Options loops through the given [SnippetOption] functions and applies them
80// to the [Snippet].
81func (s *Snippet) Options(opts ...SnippetOption) {
82 for _, opt := range opts {
83 opt.ApplyToSnippet(s)
84 }
85}
86
87// WithLine specifies the line number that the [Snippet] should center around
88// and point to.

Callers 1

NewSnippetFunction · 0.95

Calls 1

ApplyToSnippetMethod · 0.65

Tested by

no test coverage detected