DEV Community

Discussion on: How do you maintain entity state in Golang

Collapse
 
foresthoffman profile image
Forest Hoffman

Sweet! I felt the same initially. It's almost like one of those "when in Rome" situations. I will say, it's quite nice when you decide you want to mock internal functions in unit tests. Then you only have to build upon the initialization function, like any other new feature, rather than having to adopt it much later.