openurl_windows.go 350 Bytes
Newer Older
Jakob Borg's avatar
Jakob Borg committed
1 2 3
// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
// All rights reserved. Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
Jakob Borg's avatar
Jakob Borg committed
4

Jakob Borg's avatar
Jakob Borg committed
5 6 7 8 9 10 11 12 13
// +build windows

package main

import "os/exec"

func openURL(url string) error {
	return exec.Command("cmd.exe", "/C", "start "+url).Run()
}