Sorry, but for me its not a great method of releasing resources.
I tend to (for example) open a connection in one function, do something with it in another function, close it in another. I'm not writing traditional go programs, i wrap things in an api.