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

Function WithPadding

taskfile/snippet.go:116–118  ·  view source on GitHub ↗

WithPadding specifies the number of lines to include before and after the selected line in the [Snippet].

(padding int)

Source from the content-addressed store, hash-verified

114// WithPadding specifies the number of lines to include before and after the
115// selected line in the [Snippet].
116func WithPadding(padding int) SnippetOption {
117 return &paddingOption{padding: padding}
118}
119
120type paddingOption struct {
121 padding int

Callers 3

TestNewSnippetFunction · 0.85
TestSnippetStringFunction · 0.85
readNodeMethod · 0.85

Calls

no outgoing calls

Tested by 2

TestNewSnippetFunction · 0.68
TestSnippetStringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…