model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Path      string
	Lines     int
	Additions int
	Deletions int
	IsChanged bool
}

FileInfo represents information about a single file

type SortMode

type SortMode int

SortMode defines how files should be sorted

const (
	SortByName SortMode = iota
	SortByLines
	SortByAdditions
	SortByDeletions
)

func (SortMode) String

func (s SortMode) String() string

type Stats

type Stats struct {
	ChangedFiles   []*FileInfo
	UnchangedFiles []*FileInfo
	TotalFiles     int
	ChangedCount   int
	UnchangedCount int
	TotalLines     int
	TotalAdditions int
	TotalDeletions int
	NetChange      int
}

Stats represents aggregated statistics

Jump to

Keyboard shortcuts

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