Roman Budnikov·May 3, 2021Go errors with additional details.In Go, an error type is just an interface with Error() string signature, so every type that implements this signature satisfies it. Go also…
InITNEXTbyRoman Budnikov·Dec 24, 2018Using Service Objects in GoService Objects is a highly usable pattern in Ruby on Rails that gives the ability to keep controllers skinny, models clean and remove…A response icon3A response icon3
InITNEXTbyRoman Budnikov·Nov 27, 2018Yet another tool to mock interfaces in GoAs a powerful tool, unit tests can give the ability to check every aspect of the code behavior. If you will keep the idea about the need…
Roman Budnikov·Jun 18, 2018Testing database interactions using GoWhen it comes to integration or end-to-end testing, there is no more place for the mocks ss everything tested around real components or at…A response icon2A response icon2
InITNEXTbyRoman Budnikov·May 23, 2018How to stub requests to remote hosts with GoWhen creating a package with a client for some API, it’s critical to cover it with tests, especially if you want to put this package on…A response icon2A response icon2
Roman Budnikov·May 3, 2018Handling JSON null or missing values with go-swaggerIn JSON there are two ways to represent null values, first is when there is no value for a given key and its value is implicitly set to…