fix: goctl compile error on windows (#4538)

This commit is contained in:
Kevin Wan
2025-01-02 22:12:10 +08:00
committed by GitHub
parent e89e2d8a75
commit cdd068575c
2 changed files with 3 additions and 3 deletions

View File

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