mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +01:00
Move syscall to golang.org/x/sys (#525)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
//go:build windows
|
||||
// +build windows
|
||||
|
||||
package script
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
"syscall"
|
||||
|
||||
"golang.org/x/sys/windows"
|
||||
)
|
||||
|
||||
func setSysProcAttr(cmd *exec.Cmd) {
|
||||
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
||||
cmd.SysProcAttr = &windows.SysProcAttr{HideWindow: true}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user