1
0
mirror of https://github.com/taigrr/wasm-experiments synced 2026-04-14 05:58:05 -07:00
Files
wasm-experiments/vendor/github.com/pkg/browser/browser_windows.go
Johan Brandhorst 31e31e865c Add jsgo.io example
2018-08-15 17:23:29 +01:00

11 lines
169 B
Go

package browser
import (
"strings"
)
func openBrowser(url string) error {
r := strings.NewReplacer("&", "^&")
return runCmd("cmd", "/c", "start", r.Replace(url))
}