# Extract/Introduce refactorings

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

Extract/Introduce refactorings

Move expressions and code into variables, constants, types, interfaces, or functions.

- [Extract variable](https://www.jetbrains.com/help/go/extract-variable.html.md): Replace an expression with a variable.
- [Extract constant](https://www.jetbrains.com/help/go/extract-constant.html.md): Move a value into a named constant.

## Also in this section

- [Extract interface](https://www.jetbrains.com/help/go/extract-interface.html.md): Create an interface from the methods of an existing type.
- [Introduce type](https://www.jetbrains.com/help/go/introduce-type.html.md): Create a named type from a type expression.
- [Extract function](https://www.jetbrains.com/help/go/extract-method.html.md): Move a code fragment into a separate function or method.

