Skip to content

Commit

Permalink
fix: goctl compile error on windows (#4538)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jan 2, 2025
1 parent e89e2d8 commit cdd0685
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/proc/shutdown+polyfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tools/goctl/internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit cdd0685

Please sign in to comment.