loading...

re: How do you maintain entity state in Golang VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Would I be correct in understanding that you want to avoid having a domainReg instance with uninitialized values? If so, yes, I believe this is a v...
 

Awesome! Yeah that's exactly what I want to do.

For some reason it didn't feel very "go"

 

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.

Code of Conduct Report abuse