Hello, In regexp package, the "copy" function is implemented like this :
func (re *Regexp) Copy() *Regexp { 118 re2 := *re 119 return &re2 120 } But most of the time for getting a copy of a struct, I do something like this : func (re Regexp) Copy() *Regexp { 119 return &re 120 } What do you think ? Do I nitpick? Thank you dear gophers, Thomas -- 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 on the web visit https://groups.google.com/d/msgid/golang-nuts/67c6b50c-4be7-4fa2-8940-5409a96afb14%40googlegroups.com.