MCPcopy
hub / github.com/wagoodman/dive / StringBetween

Method StringBetween

dive/filetree/file_tree.go:164–166  ·  view source on GitHub ↗

StringBetween returns a partial tree in an ASCII representation.

(start, stop int, showAttributes bool)

Source from the content-addressed store, hash-verified

162
163// StringBetween returns a partial tree in an ASCII representation.
164func (tree *FileTree) StringBetween(start, stop int, showAttributes bool) string {
165 return tree.renderStringTreeBetween(start, stop, showAttributes)
166}
167
168// Copy returns a copy of the given FileTree
169func (tree *FileTree) Copy() *FileTree {

Callers 4

TestStringBetweenFunction · 0.95
PageDownMethod · 0.80
PageUpMethod · 0.80
RenderMethod · 0.80

Calls 1

Tested by 1

TestStringBetweenFunction · 0.76