github.com/kelleygo/clashcore@v1.0.2/common/cmd/cmd_windows.go (about) 1 //go:build windows 2 3 package cmd 4 5 import ( 6 "os/exec" 7 "syscall" 8 ) 9 10 func prepareBackgroundCommand(cmd *exec.Cmd) { 11 cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} 12 }