• Product Blogs
    • Français
    • 한국어
    • Português do Brasil
    • Русский
    • Español
    • 简体中文
    • IDEs

      • AppCode
      • CLion
      • DataGrip
      • DataSpell
      • Fleet
      • GoLand
      • IntelliJ IDEA
      • MPS
      • PhpStorm
      • PyCharm
      • Rider
      • RubyMine
      • WebStorm
      • Toolbox App
    • Plugins

      • Big Data Tools
      • Quality Assurance
      • Rust
      • Scala
    • Team Tools

      • Code With Me
      • Datalore
      • Space
      • TeamCity
      • Upsource
      • YouTrack
      • Hub
      • Qodana
    • .NET & Visual Studio

      • .NET Tools
      • ReSharper C++
    • Languages

      • Kotlin
      • Ktor
    • Education

      • Edu Products
    • Company

      • News
      • Security
      • Team
      • JetBrains Platform
Go logo

The GoLand Blog

A cross-platform Go IDE with extended support for JavaScript, TypeScript, and databases

  • News
  • Releases
  • Features
  • Webinars
  • Early Access Program
  • Tutorials
Download

extract interface

Refactorings in GoLand – Extract Interface

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 going from a single implementation to using multiple implementations, such as in the example below.

Florin Pățan Florin Pățan
  • Privacy & Security
  • Terms of Use
  • Legal
  • Genuine tools
  • Français
  • 한국어
  • Português do Brasil
  • Русский
  • Español
  • 简体中文
Copyright © 2000–2022 JetBrains s.r.o.