You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: kill_default_platform.go
    path of file: ./repos/lazydocker/vendor/github.com/jesseduffield/kill
    
    the code of the file until where you have to start completion: //go:build !windows
// +build !windows

package kill

import (
	"os/exec"
	"syscall"
)

// Kill kills a process. If t
    
func Kill(cmd *exec.Cmd) error {
	if cmd.Process == nil {
		// You can't kill a person with no body
		return nil
	}

	if cmd.SysProcAttr != nil && cmd.SysProcAttr.Setpgid {
		// minus sign means we're talking about a PGID as opposed to a PID
		return syscall.Kill(-cmd.Process.Pid, syscall.SIGKILL)
	}

	return cmd.Process.Kill()
}