GoLand 2019.3 Help

Viewing Structure of a Source File

You can examine the structure of the file currently opened in the editor using the Structure tool window Alt+7 or the Structure popup Ctrl+F12.

By default, GoLand shows all classes, 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

Toolbar icons of the Structure tool window

Icon

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

Sort 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 March 2020