2 ms·
Well, in my cases I usually add an unexported 'check()' method, which is generally called by every other method that needs state. It would basically just be so
by axaxs 9y ago
Well, in my cases I usually add an unexported 'check()' method, which is generally called by every other method that needs state. It would basically just be something of x.Z == nil {x.Z = DEFAULTZ}