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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.

View File

@ -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}