重新整理思路2
This commit is contained in:
@@ -21,9 +21,9 @@ type Cfg struct {
|
||||
port string
|
||||
passwd string
|
||||
connectTimeout int
|
||||
ssh bool
|
||||
sshPoint string
|
||||
}
|
||||
ssh struct {
|
||||
sshPoint map[string]struct {
|
||||
host string
|
||||
port string
|
||||
user string
|
||||
@@ -33,10 +33,6 @@ type Cfg struct {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Cfg) getDbParam() {
|
||||
|
||||
}
|
||||
|
||||
func GetCfg() *Cfg {
|
||||
pwd, err := os.Getwd()
|
||||
utils.PaincEro(err, "获取当前工作目录失败")
|
||||
Reference in New Issue
Block a user