From cf0d0e15faeabbdfa79caec505cf4ac31488eb56 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 21 Nov 2025 09:06:01 +0800 Subject: style: gofmt all code --- statistics.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'statistics.go') diff --git a/statistics.go b/statistics.go index 0cd7d44..46e89c1 100644 --- a/statistics.go +++ b/statistics.go @@ -1,32 +1,32 @@ package main import ( + "fmt" "os" "path/filepath" "syscall" "time" - "fmt" ) type statistics struct { - Name string; - Type string; //formula or cask - Desc string; - Outdated bool; + Name string + Type string //formula or cask + Desc string + Outdated bool - InstalledAsDependency bool; - InstalledOnRequest bool; - BinaryExists bool; - LastAccessTime time.Time; + InstalledAsDependency bool + InstalledOnRequest bool + BinaryExists bool + LastAccessTime time.Time - InstalledVersion string; - Homepage string; - License string; + InstalledVersion string + Homepage string + License string - ReverseDependencies []string; + ReverseDependencies []string } -func NewStatistics(formula *FormulaInfo, cask *CaskInfo, pkgName string) (*statistics) { +func NewStatistics(formula *FormulaInfo, cask *CaskInfo, pkgName string) *statistics { var statObject statistics // === formula/cask specific === // -- cgit v1.2.3