Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ReportFormatterJSON selects the JSON formatter. ReportFormatterJSON string = "json" )
Variables ¶
This section is empty.
Functions ¶
func GenerateJSONReport ¶
GenerateJSONReport generates a report in JSON format for the Git stats.
Types ¶
type AnalysisOptions ¶
AnalysisOptions controls how the analysis is performed on the repository.
type GitStats ¶
type GitStats struct { Branch string CommitCount int OldestCommit time.Time LatestCommit time.Time }
GitStats is a collection of stats about the Git repository itself.
func AnalyzeRepository ¶
func AnalyzeRepository(options AnalysisOptions) (GitStats, error)
AnalyzeRepository analyzes the repository at the given path and collects stats.
type ReportFormatter ¶
ReportFormatter is a function responsible for generating a report based on Git stats.
func NewReportFormatter ¶
func NewReportFormatter(formatterType string) (ReportFormatter, error)
NewReportFormatter selects the appropriate formatter.
Click to show internal directories.
Click to hide internal directories.