From cdd068575c19a82f7d0a62dc79a56e34a7d8dc77 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Thu, 2 Jan 2025 22:12:10 +0800 Subject: [PATCH] fix: goctl compile error on windows (#4538) --- core/proc/shutdown+polyfill.go | 4 ++-- tools/goctl/internal/version/version.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/proc/shutdown+polyfill.go b/core/proc/shutdown+polyfill.go index 23128740..f371f579 100644 --- a/core/proc/shutdown+polyfill.go +++ b/core/proc/shutdown+polyfill.go @@ -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. diff --git a/tools/goctl/internal/version/version.go b/tools/goctl/internal/version/version.go index bdbbc628..a9df8ca4 100644 --- a/tools/goctl/internal/version/version.go +++ b/tools/goctl/internal/version/version.go @@ -6,7 +6,7 @@ import ( ) // BuildVersion is the version of goctl. -const BuildVersion = "1.7.4" +const BuildVersion = "1.7.5" var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}