DEV Community

loading...

Discussion on: A bug caused by silent defaults

Collapse
freedom profile image
Freedom

Like this?

medium.com/swlh/object-oriented-pr...

Perhaps, it could useful for golint-ci to catch this silent bug.

Collapse
yujiri8 profile image
Ryan Westlund Author

I don't know how golint-ci could've caught it without warning on every usage of this feature. There are some times where you do want the field left on its zero value