GoLand 2025.2 Help

Extract Interface dialog

Refactor | Extract Interface

For more information about using Extract Interface, refer to the extract interface section.

Item

Description

Extract interface from

This read-only field shows the source package that contains the class from which the interface will be extracted.

Interface name

Enter a name for the new interface. This field is available only if the Extract interface option is selected.

Declarations

Methods of the selected interface.

To directory

Specify the target directory for the new interface. If needed, click the browse icon (Browse button) and select the directory.

To file

Specify the file name for the new interface. If needed, click the browse icon (Browse button) and select the file.

To package

Specify the package for the new interface. If needed, click the browse icon (Browse button) and select the package directory.

02 September 2025