fix compiling error for goctl on windows

This commit is contained in:
Kevin Wan 2025-01-02 06:22:26 +00:00
parent 6a0c8047f4
commit acd2b94bd9

View File

@ -4,8 +4,8 @@ package proc
import "time"
type ShutdownConf {}
// ShutdownConf is empty on windows.
type ShutdownConf struct {}
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
func AddShutdownListener(fn func()) func() {
@ -25,6 +25,10 @@ func SetTimeToForceQuit(duration time.Duration) {
func Setup() {
}
// Setup does nothing on windows.
func Setup() {
}
// Shutdown does nothing on windows.
func Shutdown() {
}