mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
use var()
This commit is contained in:
parent
fb00d335c0
commit
9240258dc9
28
etcd.go
28
etcd.go
@ -19,28 +19,30 @@ import (
|
||||
//
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
var verbose bool
|
||||
var veryVerbose bool
|
||||
var (
|
||||
verbose bool
|
||||
veryVerbose bool
|
||||
|
||||
var machines string
|
||||
var machinesFile string
|
||||
machines string
|
||||
machinesFile string
|
||||
|
||||
var cluster []string
|
||||
cluster []string
|
||||
|
||||
var argInfo Info
|
||||
var dirPath string
|
||||
argInfo Info
|
||||
dirPath string
|
||||
|
||||
var force bool
|
||||
force bool
|
||||
|
||||
var maxSize int
|
||||
maxSize int
|
||||
|
||||
var snapshot bool
|
||||
snapshot bool
|
||||
|
||||
var retryTimes int
|
||||
retryTimes int
|
||||
|
||||
var maxClusterSize int
|
||||
maxClusterSize int
|
||||
|
||||
var cpuprofile string
|
||||
cpuprofile string
|
||||
)
|
||||
|
||||
func init() {
|
||||
flag.BoolVar(&verbose, "v", false, "verbose logging")
|
||||
|
Loading…
x
Reference in New Issue
Block a user