mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 08:54:10 +00:00
Style: format code by gofumpt (#761)
This commit is contained in:
parent
d77be80b40
commit
e286cdcaa8
111 changed files with 293 additions and 291 deletions
|
@ -12,7 +12,7 @@ func init() {
|
|||
base.RootCommand.Commands = append(
|
||||
base.RootCommand.Commands,
|
||||
api.CmdAPI,
|
||||
//cmdConvert,
|
||||
// cmdConvert,
|
||||
tls.CmdTLS,
|
||||
cmdUUID,
|
||||
)
|
||||
|
|
|
@ -27,9 +27,7 @@ func init() {
|
|||
cmdPing.Run = executePing // break init loop
|
||||
}
|
||||
|
||||
var (
|
||||
pingIPStr = cmdPing.Flag.String("ip", "", "")
|
||||
)
|
||||
var pingIPStr = cmdPing.Flag.String("ip", "", "")
|
||||
|
||||
func executePing(cmd *base.Command, args []string) {
|
||||
if cmdPing.Flag.NArg() < 1 {
|
||||
|
|
|
@ -113,8 +113,10 @@ func ExitIfErrors() {
|
|||
}
|
||||
}
|
||||
|
||||
var exitStatus = 0
|
||||
var exitMu sync.Mutex
|
||||
var (
|
||||
exitStatus = 0
|
||||
exitMu sync.Mutex
|
||||
)
|
||||
|
||||
// SetExitStatus set exit status code
|
||||
func SetExitStatus(n int) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue