github.com/BIG5Concepts/forego@v0.16.1/windows.go (about)

     1  // +build windows
     2  
     3  package main
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  const osHaveSigTerm = false
    10  
    11  func ShellInvocationCommand(interactive bool, root, command string) []string {
    12  	return []string{"cmd", "/C", command}
    13  }
    14  
    15  func (p *Process) PlatformSpecificInit() {
    16  	// NOP on windows for now.
    17  	return
    18  }
    19  
    20  func (p *Process) SendSigTerm() {
    21  	panic("SendSigTerm() not implemented on this platform")
    22  }
    23  
    24  func (p *Process) SendSigKill() {
    25  	p.Signal(syscall.SIGKILL)
    26  }