go的命名返回值有时,函数体内直接可以等于,不需要再重新:=或者var声明

func  ModenT() (config *ssh.ClientConfig,err error) {
config = &ssh.ClientConfig{
User: "cheyunhua",

}
config.Auth=[]ssh.AuthMethod{ssh.Password("12333")}
return
}
原文地址:https://www.cnblogs.com/cheyunhua/p/15572446.html