Go 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…May 3, 2021May 3, 2021
Published inITNEXTUsing 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…Dec 24, 20183Dec 24, 20183
Published inITNEXTYet 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…Nov 27, 2018Nov 27, 2018
Testing 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…Jun 18, 20182Jun 18, 20182
Published inITNEXTHow 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…May 23, 20182May 23, 20182
Handling 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…May 3, 2018May 3, 2018