Open lukaszb opened 8 years ago
@marcosnils sure, can do that. btw, can you look at travis failed build? It seems to fail for code I haven't actually touched.
var nilStruct struct{}
This struct is zeroed, not nil (only pointers can be nil) so the behavior could be misleading.
IsZero()
/ IsNotZero()
are probably better names for this more flexible functionality.
@lukaszb thanks for the contribution. I like the idea of adding these type of assertions but we need to make sure to catch
nil
structs as well. I.E:Currently this fails, It'd be nice if we could catch these scenarios also.