0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-11-23 23:49:35 +00:00
crazy-max_diun/internal/notif/script/cmd_windows.go
CrazyMax 848a9a08ac
Move syscall to golang.org/x/sys (#525)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-12-26 03:59:19 +01:00

15 lines
203 B
Go

//go:build windows
// +build windows
package script
import (
"os/exec"
"golang.org/x/sys/windows"
)
func setSysProcAttr(cmd *exec.Cmd) {
cmd.SysProcAttr = &windows.SysProcAttr{HideWindow: true}
}