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

Function WithLine

taskfile/snippet.go:89–91  ·  view source on GitHub ↗

WithLine specifies the line number that the [Snippet] should center around and point to.

(line int)

Source from the content-addressed store, hash-verified

87// WithLine specifies the line number that the [Snippet] should center around
88// and point to.
89func WithLine(line int) SnippetOption {
90 return &lineOption{line: line}
91}
92
93type lineOption struct {
94 line 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…