feat(platform): 多平台检测/路径/信号/系统信息(含跨平台构建验证)
This commit is contained in:
1 parent
efed5f05b1
commit
1d4bed415f
6 files changed
+276
No files matched your search
@@ -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}
|
||||
}
|
||||
Reference in new issue
Block a user