![](/style/images/good.png)
49
![](/style/images/bad.png)
Behavior of defer function in named return function | Pixelstech.net
source link: https://www.pixelstech.net/article/1542724558-Behavior-of-defer-function-in-named-return-function
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
In Go, there is a special concept of named return value in function where a returned value can have name. For example, below is a named function in Go.func returnNamed() (i int) { i = 1 return}When th
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK