Redundant commit: only to switch branches. Can be removed.

This commit is contained in:
Jesse Malotaux 2025-04-04 11:52:48 +02:00
commit 59dd711ab3
102 changed files with 34954 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package helper
import (
"os/exec"
"runtime"
)
func OpenBrowser(url string) bool {
var args []string
switch runtime.GOOS {
case "darwin":
args = []string{"open"}
case "windows":
args = []string{"cmd", "/c", "start"}
default:
args = []string{"xdg-open"}
}
cmd := exec.Command(args[0], append(args[1:], url)...)
return cmd.Start() == nil
}