1 2 3 4 5 6 7 8 9 10
package browser import ( "strings" ) func openBrowser(url string) error { r := strings.NewReplacer("&", "^&") return runCmd("cmd", "/c", "start", r.Replace(url)) }