Skip to content

Commit

Permalink
fix compiling error for goctl on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Jan 2, 2025
1 parent 6a0c804 commit acd2b94
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/proc/shutdown+polyfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package proc

import "time"


type ShutdownConf {}
// ShutdownConf is empty on windows.
type ShutdownConf struct {}

// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
func AddShutdownListener(fn func()) func() {
Expand All @@ -25,6 +25,10 @@ func SetTimeToForceQuit(duration time.Duration) {
func Setup() {

Check failure on line 25 in core/proc/shutdown+polyfill.go

View workflow job for this annotation

GitHub Actions / Windows

other declaration of Setup
}

// Setup does nothing on windows.
func Setup() {

Check failure on line 29 in core/proc/shutdown+polyfill.go

View workflow job for this annotation

GitHub Actions / Windows

Setup redeclared in this block
}

// Shutdown does nothing on windows.
func Shutdown() {
}
Expand Down

0 comments on commit acd2b94

Please sign in to comment.