diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-21 09:06:01 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-21 09:06:01 +0800 |
| commit | cf0d0e15faeabbdfa79caec505cf4ac31488eb56 (patch) | |
| tree | 6611f6ad0112dd7a96d68dcb410181dc7ef86256 /brewget.go | |
| parent | 3ce76a4e0be8edef6ee90ff4edb291aadb200e99 (diff) | |
style: gofmt all code
Diffstat (limited to 'brewget.go')
| -rw-r--r-- | brewget.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,11 +1,11 @@ package main import ( + "bytes" "encoding/json" + "github.com/fatih/color" "os/exec" "strings" - "bytes" - "github.com/fatih/color" ) type FormulaInfo struct { @@ -62,7 +62,7 @@ func GetBrewInfo(pkg string) (*FormulaInfo, *CaskInfo) { return nil, nil // not found } -func GetBrewUses(pkg string) ([]string) { +func GetBrewUses(pkg string) []string { cmd := exec.Command("brew", "uses", "--installed", pkg) var out bytes.Buffer cmd.Stdout = &out |
