|
|
|
|
|
by Ao7bei3s
3282 days ago
|
|
As one would expect. The deferred code runs after the normal code in the function has ended, and before the calling code has resumed. Named return values are in scope and can be read and modified. Try it and see: https://play.golang.org/p/1ozFWDj15a |
|