Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Go DI NavigationNew to Visual Studio Code? Get it now.
Go DI Navigation

Go DI Navigation

kae1dy

|
4 installs
| (0) | Free
Navigation support for Go Dependency Injection annotations
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go DI Navigation Extension

VS Code extension for navigating Go Dependency Injection annotations.

Features

  • Go to Definition: Click on di:by_name(ServiceName) to jump to the service definition
  • Find References: Find all places where a DI service is used
  • Hover Information: Hover over DI annotations to see dependencies and dependents
  • Code Lens: See dependency counts above service definitions

Usage

  1. Install the extension
  2. Open a Go project with DI annotations (// di:new, // di:name, // di:by_name)
  3. The extension will automatically load the DI container from internal/generated/container/init.json
  4. Use Ctrl+Click (Cmd+Click on Mac) on di:by_name(ServiceName) to navigate to the service definition

Configuration

You can configure the path to the DI container JSON file in VS Code settings:

{
  "goDiNavigation.containerPath": "internal/generated/container/init.json"
}

Development

npm install
npm run compile
npm run watch  # For development

Press F5 to launch the extension in a new VS Code window.

Requirements

  • VS Code 1.74.0 or higher
  • Go project with DI annotations
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft