Skip to content

Instantly share code, notes, and snippets.

View pascallin's full-sized avatar
🇨🇳

pascal_lin pascallin

🇨🇳
View GitHub Profile
@hallazzang
hallazzang / main.go
Last active December 16, 2024 07:03
[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)