Mistake? What mistake?

So far we’ve implemented CAS layer. It already looks pretty nice and has high test coverage. But I made one small mistake there. Although CAS is currently doing what it’s supposed to do, it will have to be extended later to gain a bit of dynamic features. Using CAS name for such extended module would be misleading. That’s why it has to be renamed.

I’ve chosen datastore for the new name. It’s really generic, informs that module with it’s name will store data but doesn’t bring any serious limits.

The only thing left to do was to change the code and try to not break something.

RefacTools

Refactoring in golang is relatively simple thanks to tools such as gofmt, gomvpkg or gorename. Most of the time I spend adjusting comments and searching for incorrect names.

And thanks God I had enough testing coverage to quickly ensure everything compiles and runs as expected.

That would be the end of this short post. The result of today’s post is here. Please take a look if you’re curious what has changed.

Bye