loc

package
v0.0.0-...-dcec06b Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LineCounts

type LineCounts struct {
	Code     int
	Comments int
}

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
}

Jump to

Keyboard shortcuts

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