In today’s article, we will talk about the Extract Interface refactoring, a new refactoring available since GoLand 2019.1.
This refactoring allows us to take a type and extract all the method definitions that we need, then create a new interface from them. This operation is particularly useful when…