Skip to content

Instantly share code, notes, and snippets.

View avengerweb's full-sized avatar
🏠
Working from home

Vadim Shchepotev avengerweb

🏠
Working from home
View GitHub Profile
@hallazzang
hallazzang / main.go
Last active April 28, 2024 06:58
[go] (Windows) ensure all child processes are killed when main program exits
package main
import (
"os/exec"
"unsafe"
"golang.org/x/sys/windows"
)
// We use this struct to retreive process handle(which is unexported)