# Extract Interface dialog

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

`Refactor | Extract Interface`

For more information about using [Extract Interface](https://refactoring.guru/extract-interface), refer to the [extract interface](extract-interface.html) section.

| Item | Description |
| --- | --- |
| Extract interface from |  Shows the qualified name of the source type from which you extract the interface. You cannot edit this field. |
| Interface name | Enter a name for the new interface. |
| Declarations | Select the methods of the source type or interface to include in the new interface. |
| To directory | Specify the target directory for the new interface. If needed, click the browse icon (![Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.general.ellipsis.svg)) and select the directory. |
| To file | Specify the file name for the new interface. If needed, click the browse icon (![Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.general.ellipsis.svg)) and select the file. |
| To package | Specify the package for the new interface. If needed, click the browse icon (![Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.general.ellipsis.svg)) and select the package directory. |

## See also

### External Links

[https://blog.jetbrains.com/go/2018/10/26/refactorings-in-goland-extract-and-inline/](https://blog.jetbrains.com/go/2018/10/26/refactorings-in-goland-extract-and-inline/)

