I have seen few places where functions are returning struct as a value (for 
instance time package, time is always returned as a value) and however at 
some places folks prefer to return the pointers to struct instead of the 
copy. 

Which one should be idiomatic approach, and when should we prefer other 
once ?

-- 
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.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/cc4de03f-4ffe-4492-b988-19611e09a7e4n%40googlegroups.com.

Reply via email to