Skip to content

Commit cdd0685

Browse files
authored
fix: goctl compile error on windows (#4538)
1 parent e89e2d8 commit cdd0685

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/proc/shutdown+polyfill.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package proc
55
import "time"
66

77
// ShutdownConf is empty on windows.
8-
type ShutdownConf struct {}
8+
type ShutdownConf struct{}
99

1010
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
1111
func AddShutdownListener(fn func()) func() {
@@ -22,7 +22,7 @@ func SetTimeToForceQuit(duration time.Duration) {
2222
}
2323

2424
// Setup does nothing on windows.
25-
func Setup() {
25+
func Setup(conf ShutdownConf) {
2626
}
2727

2828
// Shutdown does nothing on windows.

tools/goctl/internal/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
)
77

88
// BuildVersion is the version of goctl.
9-
const BuildVersion = "1.7.4"
9+
const BuildVersion = "1.7.5"
1010

1111
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}
1212

0 commit comments

Comments
 (0)