diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2016-05-22 01:23:33 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2016-05-22 01:23:33 +0100 |
commit | 649bf79117e30895108b7782d62daafd07bc5e6e (patch) | |
tree | fbee9fcd5374b87e75f85c0f1bf3a0d45aa6de67 /vendor/github.com/pkg/browser/browser_windows.go | |
parent | 1b21181bda148118b56221fe35b8dac3cd40bb50 (diff) |
Use govendor
Diffstat (limited to 'vendor/github.com/pkg/browser/browser_windows.go')
-rw-r--r-- | vendor/github.com/pkg/browser/browser_windows.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/pkg/browser/browser_windows.go b/vendor/github.com/pkg/browser/browser_windows.go new file mode 100644 index 0000000..f65e0ee --- /dev/null +++ b/vendor/github.com/pkg/browser/browser_windows.go @@ -0,0 +1,10 @@ +package browser + +import ( + "strings" +) + +func openBrowser(url string) error { + r := strings.NewReplacer("&", "^&") + return runCmd("cmd", "/c", "start", r.Replace(url)) +} |