Example Error - port and user switched
domoran opened this issue · comments
On the example in the README.md file the port and user arguments of CreateClient are switched ... This yields a non obvious error getAddrInfoW: class not found ... It cost me some time to figure out the reason.
// Connect ssh server
err := con.CreateClient(host, user, port, []ssh.AuthMethod{authMethod})
if err != nil {
fmt.Println(err)
os.Exit(1)
}
Please correct the example in the readme too ;-)
It is also mixed up on the sshlib docs: https://pkg.go.dev/github.com/blacknon/go-sshlib@v0.1.8#section-readme
Oh, I just noticed.
Thank you, I'll fix it!