From acd2b94bd91c99a72a416a3498b560bfb8573c6b Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Thu, 2 Jan 2025 06:22:26 +0000 Subject: [PATCH] fix compiling error for goctl on windows --- core/proc/shutdown+polyfill.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/proc/shutdown+polyfill.go b/core/proc/shutdown+polyfill.go index c8ef0000..8fe75681 100644 --- a/core/proc/shutdown+polyfill.go +++ b/core/proc/shutdown+polyfill.go @@ -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() { }