Create a Function in Another Package

Type a non-existing function name and generate its implementation in a package of your choice.

GoLand introduces an innovative feature: the Create Function Quick-Fix. This quick-fix significantly accelerates the development process by allowing you to type a non-existing function name and then effortlessly generate its implementation in a package of your choice.

Start by typing the name of a function that does not yet exist in your code. Click a light bulb icon that appears in the editor or use the keyboard shortcut ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) to activate the quick-fix. Select the package where you want to generate the new function.

Code coverage for applications

Related Resources

Empower your `Printf`-like functions with coding assistance
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions.
Check for Vulnerabilities
Check for Vulnerabilities
Analyze your codebase and highlight known vulnerabilities in go.mod
Convert Between Different Types of Strings
Convert Between Different Types of Strings
Convert strings that are surrounded by backticks to double-quoted ones and vice-versa