MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / GetCopyrightYearRange

Function GetCopyrightYearRange

internal/version/version.go:130–139  ·  view source on GitHub ↗

GetCopyrightYearRange returns a copyright year range (e.g., "2025-2026")

()

Source from the content-addressed store, hash-verified

128
129// GetCopyrightYearRange returns a copyright year range (e.g., "2025-2026")
130func GetCopyrightYearRange() string {
131 startYear := 2025 // Project start year
132 currentYear := time.Now().Year()
133
134 if currentYear == startYear {
135 return fmt.Sprintf("%d", startYear)
136 }
137
138 return fmt.Sprintf("%d-%d", startYear, currentYear)
139}

Callers 2

CreateAboutDialogFunction · 0.92

Calls

no outgoing calls

Tested by 1