style: format code (#1322)
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
// Upgrade gets the latest goctl by
|
||||
// go get -u github.com/tal-tech/go-zero/tools/goctl
|
||||
func Upgrade(_ *cli.Context) error {
|
||||
var cmd = `GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go install github.com/tal-tech/go-zero/tools/goctl@cli`
|
||||
cmd := `GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go install github.com/tal-tech/go-zero/tools/goctl@cli`
|
||||
if runtime.GOOS == "windows" {
|
||||
cmd = `set GOPROXY=https://goproxy.cn,direct && go install github.com/tal-tech/go-zero/tools/goctl@cli`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user