feat(platform): 多平台检测/路径/信号/系统信息(含跨平台构建验证)

This commit is contained in:
Aska committed 2026-09-06 04:17:20 +08:00
1 parent efed5f05b1
commit 1d4bed415f
6 files changed
+276

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
//go:build windows
package platform
import "os"
func shutdownSignals() []os.Signal {
// Windows has no SIGTERM equivalent; Ctrl+C (os.Interrupt) is the only
// portable interactive termination signal.
return []os.Signal{os.Interrupt}
}