On 3/12/21 12:33 PM, Axel Wagner wrote: > This sounds like if you are suggesting to make the zero value of a map an > empty > map, which is different from initializing a map variable to an empty map if > it a > named return. That suggestion has come up a lot, both on this list and on the > github issue tracker. It's, unfortunately, not as easy as it sounds. Here is > some prior discussion: > https://groups.google.com/g/golang-nuts/c/SjuhSYDITm4/m/Z013vH5qDQAJ > <https://groups.google.com/g/golang-nuts/c/SjuhSYDITm4/m/Z013vH5qDQAJ> > https://groups.google.com/g/golang-nuts/c/5_8E9OblIho/m/b9O038mzBQAJ > <https://groups.google.com/g/golang-nuts/c/5_8E9OblIho/m/b9O038mzBQAJ> >
Thank You. Sorry, I should have searched. > Are there any better tools than golang-shadow and golang-nilness, for > these > problems? > > > I don't know. I don't even know either of those. They are in x/tools. I only found them today. -- 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/c85bccf2-72a8-1e13-64ee-3475b77b9e21%40gmail.com.