summaryrefslogtreecommitdiff
path: root/brewget.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 /brewget.go
parent3ce76a4e0be8edef6ee90ff4edb291aadb200e99 (diff)
style: gofmt all code
Diffstat (limited to 'brewget.go')
-rw-r--r--brewget.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/brewget.go b/brewget.go
index 4edcfc0..dc05520 100644
--- a/brewget.go
+++ b/brewget.go
@@ -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