summaryrefslogtreecommitdiff
path: root/statistics.go
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-21 09:06:01 +0800
committerEltrac <hi@guhub.cn>2025-11-21 09:06:01 +0800
commitcf0d0e15faeabbdfa79caec505cf4ac31488eb56 (patch)
tree6611f6ad0112dd7a96d68dcb410181dc7ef86256 /statistics.go
parent3ce76a4e0be8edef6ee90ff4edb291aadb200e99 (diff)
style: gofmt all code
Diffstat (limited to 'statistics.go')
-rw-r--r--statistics.go28
1 files changed, 14 insertions, 14 deletions
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 === //