feat(platform): 多平台检测/路径/信号/系统信息(含跨平台构建验证)
This commit is contained in:
1 parent
efed5f05b1
commit
1d4bed415f
6 files changed
+276
No files matched your search
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package platform
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func shutdownSignals() []os.Signal {
|
||||
return []os.Signal{os.Interrupt, syscall.SIGTERM}
|
||||
}
|
||||
Reference in new issue
Block a user