mirror of
https://github.com/crazy-max/diun.git
synced 2024-11-23 23:49:35 +00:00
848a9a08ac
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
15 lines
203 B
Go
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}
|
|
}
|