Hi all,
I use defer to release resource at function level.

func test() {
  a := A.Open()
  defer a.Close()
  //other code
}

I need the object a, to be wrapped in a struct. Can someone tell me how to make 
a.Close() in this case elegantly ?

Warm Regards,
Asit Dhal
http://bit.ly/193ASIT

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to