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 cfe03ea commit 6a0c804
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/proc/shutdown+polyfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ package proc

import "time"


type ShutdownConf {}

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

View workflow job for this annotation

GitHub Actions / Windows

syntax error: unexpected { in type declaration

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

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

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

0 comments on commit 6a0c804

Please sign in to comment.