Documentation
¶
Overview ¶
structure/entry.go
structure/tree.go
Index ¶
- type CodeStats
- type Entry
- func (e *Entry) AddChild(child *Entry)
- func (e *Entry) AggregateStats()
- func (e *Entry) Ext() string
- func (e *Entry) GetChild(name string) *Entry
- func (e *Entry) GetStats(langFilter string) CodeStats
- func (e *Entry) HasChild() bool
- func (e *Entry) Languages() []string
- func (e *Entry) Name() string
- func (e *Entry) SortChild() *Entry
- type Tree
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct {
Path string
Child []*Entry
IsDir bool
StatsByLang map[string]CodeStats
TotalStats CodeStats
// contains filtered or unexported fields
}
func NewDirEntry ¶
func (*Entry) AggregateStats ¶
func (e *Entry) AggregateStats()
AggregateStats recursively updates directory statistics from child nodes
type Tree ¶
type Tree struct {
// contains filtered or unexported fields
}
func (*Tree) BuildFromStdin ¶
func (*Tree) BuildFromTokei ¶
BuildFromTokei builds the file tree from tokei's output for the given path
Click to show internal directories.
Click to hide internal directories.