Included is a simple example of named returned values and a second example that shows how named return values can be useful in conjunction with defer. The second example is pretty contrived, but I included it because it is something you can't do any other way. However it may be too esoteric for this tutorial and I'm glad to drop it :)
Included is a simple example of named returned values and a second example that shows how named return values can be useful in conjunction with defer. The second example is pretty contrived, but I included it because it is something you can't do any other way. However it may be too esoteric for this tutorial and I'm glad to drop it :)