golang windows无GUI调用浏览器
2021-01-05 18:27
标签:browser imp ide class com specified sys ecif spro // open opens the specified URL in the default browser of the user. golang windows无GUI调用浏览器 标签:browser imp ide class com specified sys ecif spro 原文地址:https://www.cnblogs.com/linzenews/p/14219014.htmlpackage main
import (
"os/exec"
"syscall"
)
func main() {
// 无GUI调用
cmd := exec.Command("cmd", "/c", "start", "https://tech.mojotv.cn")
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
cmd.Start()
}
文章标题:golang windows无GUI调用浏览器
文章链接:http://soscw.com/index.php/essay/40319.html