Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineCounts ¶
type LinesOfCode ¶
type LinesOfCode struct {
Packages map[string]*PackageLinesOfCode
}
func CalculateLinesOfCode ¶
func CalculateLinesOfCode(ins *inspector.Inspector) *LinesOfCode
CacluclateLinesOfCode will calculate the number of non-comment lines of code within each package and return them within the corresponding map type
type PackageLinesOfCode ¶
type PackageLinesOfCode struct { Lines LineCounts Files map[string]LineCounts Functions map[string]LineCounts }
Click to show internal directories.
Click to hide internal directories.