mirror of
https://github.com/crazy-max/diun.git
synced 2025-01-12 11:38:11 +00:00
848a9a08ac
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
14 lines
203 B
Go
14 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}
|
|
}
|