GoLand 2023.2 Help

Source file structure

By default, GoLand shows all types, methods, and other elements of the current file. To toggle the elements you want to show, click the corresponding buttons on the Structure tool window toolbar. For example, click the Show package structure icon the Show package structure icon to see the structure of the current package.

Structure tool window

You can also see the VCS status color hints in the Structure tool window if your project is under version control. It helps you to make tracking changes in files more convenient. The names of modified objects become blue, and the names of the newly added objects appear in the tool window highlighted in green.

Highlighting changes in files

Toolbar icons of the Structure tool window

Icon

Name

Description

Sort by exportability

Sort by Exportability

Show first the identifiers that may be exported to permit access to them from another package.

Sort Alphabetically

Alphabetically

Sort the list alphabetically.

Show Private Members

Show Private Members

Show the members that are not exported.

Show package structure

Show Package Structure

Show the package structure.

Navigate with Single Click

Navigate with Single Click

Navigate to a declaration of the item in the source code when you select the item in the Structure tool window.

Always Select Opened Element

Always Select Opened Element

Navigate to the item in the Structure tool window when you click the item declaration in the source code.

Identifier icons of the Structure tool window

Icon

Description

Interface

Interfaces

Function

Fields that belong to a type

Function

Functions

Method

Methods

Type

Types

Variable

Variables

Constant

Constants

Last modified: 23 August 2023