It can, as I see you've already discovered - but at the same time, should it? I think the current 'received Go wisdom' in the community seems to be 'Accept interfaces, return structs' - https://medium.com/@cep21/what-accept-interfaces-return-structs-means-in-go-2fe879e25ee8#.g2jxv9wgv
So you might consider if it is actually helpful there to return the interface (I'm not saying it definitely isn't - there may be a valid reason to return an interface. I'm just suggesting it might be worth questioning whether it is or not.) -- 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.