loc_count

package
v0.0.0-...-b45cdd6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileName

type FileName = string

type FilesLocCounter

type FilesLocCounter struct {
	// contains filtered or unexported fields
}

func NewFilesLOCCounter

func NewFilesLOCCounter() *FilesLocCounter

func (*FilesLocCounter) AddFile

func (c *FilesLocCounter) AddFile(path string, file io.Reader) error

func (*FilesLocCounter) GetLOCsForPaths

func (c *FilesLocCounter) GetLOCsForPaths() []LOCForPath

type LOCForPath

type LOCForPath struct {
	Path string
	LOC  int
}

type LangName

type LangName = string

type LinesNumber

type LinesNumber = int

type StatTree

type StatTree struct {
	LOC        LinesNumber
	LOCByLangs map[LangName]LinesNumber
	Children   map[FileName]*StatTree
}

func BuildStatTree

func BuildStatTree(locsForPaths []LOCForPath, filter, matcher *string) *StatTree

func (StatTree) IsDir

func (t StatTree) IsDir() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL