4 ms·
I think it would be nice to return a bool, rather than an error. It really is just a binary condition and this pattern fits nicely with accessing values in map
by courtf 12y ago
I think it would be nice to return a bool, rather than an error. It really is just a binary condition and this pattern fits nicely with accessing values in maps. That said, I haven't really found a need for a .Get method in my own code, and will probably just stick with encoding/json for the time being.