package main import ( "fmt" "os" "git.xbudex.com/buddy/open-hardware-monitor/lib/app" ) func main() { a := app.New() handleErr(a.Run(os.Args)) } func handleErr(err error) { if err == nil { return } fmt.Fprintf(os.Stderr, "%s\n", err) os.Exit(1) }