Documentation ¶
Index ¶
- type FileSorter
- func (f FileSorter) OrderByBlankLines(summary *scanner.Summary) *SortedSummary
- func (f FileSorter) OrderByCodeLines(summary *scanner.Summary) *SortedSummary
- func (f FileSorter) OrderByComments(summary *scanner.Summary) *SortedSummary
- func (f FileSorter) OrderByLanguage(summary *scanner.Summary) *SortedSummary
- func (f FileSorter) OrderByLines(summary *scanner.Summary) *SortedSummary
- type LanguageSorter
- func (l LanguageSorter) OrderByBlankLines(summary *scanner.Summary) *SortedSummary
- func (l LanguageSorter) OrderByCodeLines(summary *scanner.Summary) *SortedSummary
- func (l LanguageSorter) OrderByComments(summary *scanner.Summary) *SortedSummary
- func (l LanguageSorter) OrderByFiles(summary *scanner.Summary) *SortedSummary
- func (l LanguageSorter) OrderByLanguage(summary *scanner.Summary) *SortedSummary
- func (l LanguageSorter) OrderByLines(summary *scanner.Summary) *SortedSummary
- type Result
- type SortedSummary
- type Sorter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSorter ¶
type FileSorter struct {
// contains filtered or unexported fields
}
func NewFileSorter ¶
func NewFileSorter(sortOrder string) FileSorter
func (FileSorter) OrderByBlankLines ¶
func (f FileSorter) OrderByBlankLines(summary *scanner.Summary) *SortedSummary
func (FileSorter) OrderByCodeLines ¶
func (f FileSorter) OrderByCodeLines(summary *scanner.Summary) *SortedSummary
func (FileSorter) OrderByComments ¶
func (f FileSorter) OrderByComments(summary *scanner.Summary) *SortedSummary
func (FileSorter) OrderByLanguage ¶
func (f FileSorter) OrderByLanguage(summary *scanner.Summary) *SortedSummary
func (FileSorter) OrderByLines ¶
func (f FileSorter) OrderByLines(summary *scanner.Summary) *SortedSummary
type LanguageSorter ¶
type LanguageSorter struct {
// contains filtered or unexported fields
}
func NewLanguageSorter ¶
func NewLanguageSorter(sortOrder string) LanguageSorter
func (LanguageSorter) OrderByBlankLines ¶
func (l LanguageSorter) OrderByBlankLines(summary *scanner.Summary) *SortedSummary
func (LanguageSorter) OrderByCodeLines ¶
func (l LanguageSorter) OrderByCodeLines(summary *scanner.Summary) *SortedSummary
func (LanguageSorter) OrderByComments ¶
func (l LanguageSorter) OrderByComments(summary *scanner.Summary) *SortedSummary
func (LanguageSorter) OrderByFiles ¶
func (l LanguageSorter) OrderByFiles(summary *scanner.Summary) *SortedSummary
func (LanguageSorter) OrderByLanguage ¶
func (l LanguageSorter) OrderByLanguage(summary *scanner.Summary) *SortedSummary
func (LanguageSorter) OrderByLines ¶
func (l LanguageSorter) OrderByLines(summary *scanner.Summary) *SortedSummary
type SortedSummary ¶
type Sorter ¶
type Sorter interface { OrderByLanguage(summary *scanner.Summary) *SortedSummary OrderByCodeLines(summary *scanner.Summary) *SortedSummary OrderByLines(summary *scanner.Summary) *SortedSummary OrderByComments(summary *scanner.Summary) *SortedSummary OrderByBlankLines(summary *scanner.Summary) *SortedSummary }
Click to show internal directories.
Click to hide internal directories.