Skip to content

Instantly share code, notes, and snippets.

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

pascal_lin pascallin

🏠
Working from home
View GitHub Profile
@hallazzang
hallazzang / main.go
Last active February 20, 2026 09:30
[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)