mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 16:30:01 +08:00
fix: goctl compile error on windows (#4538)
This commit is contained in:
@@ -5,7 +5,7 @@ package proc
|
|||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
// ShutdownConf is empty on windows.
|
// ShutdownConf is empty on windows.
|
||||||
type ShutdownConf struct {}
|
type ShutdownConf struct{}
|
||||||
|
|
||||||
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
|
// AddShutdownListener returns fn itself on windows, lets callers call fn on their own.
|
||||||
func AddShutdownListener(fn func()) func() {
|
func AddShutdownListener(fn func()) func() {
|
||||||
@@ -22,7 +22,7 @@ func SetTimeToForceQuit(duration time.Duration) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Setup does nothing on windows.
|
// Setup does nothing on windows.
|
||||||
func Setup() {
|
func Setup(conf ShutdownConf) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shutdown does nothing on windows.
|
// Shutdown does nothing on windows.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// BuildVersion is the version of goctl.
|
// 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}
|
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user