[Solved] go multiple-value in single-value context
[ad_1] The channel can only take one variable so you are right that you need to define a structure to hold you results, however, you are not actually using this to pass into your channel. You have two options, either modify executeCmd to return a results: func executeCmd(command, port string, hostname string, config *ssh.ClientConfig) results … Read more