Is there a way in go to assign two variables to a function that returns two values when you have one variable declared and the other not.
For example:
var host string
if host, err := func(); err != nil {}
In the above code, host is declared but err isn't. I want a clean way to do this other than declaring err