Skip to content

Commit b25c2ca

Browse files
committed
update
1 parent 26cab4a commit b25c2ca

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

security_linux_mac.go

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//go:build !windows
2+
// +build !windows
3+
4+
package pe
5+
6+
import "os/exec"
7+
8+
func hideWindow(cmd *exec.Cmd) {
9+
}

security_windows.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//go:build windows
2+
// +build windows
3+
4+
package pe
5+
6+
import (
7+
"os/exec"
8+
"syscall"
9+
)
10+
11+
func hideWindow(cmd *exec.Cmd) {
12+
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
13+
}

0 commit comments

Comments
 (0)