Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Go Import CostNew to Visual Studio Code? Get it now.
Go Import Cost

Go Import Cost

Gustavo Barez

|
7 installs
| (1) | Free
Display import sizes for Go modules
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Import Cost

Display the size of Go module dependencies inline in your code.

Features

  • Shows module sizes in go.mod files
  • Shows import sizes in .go files
  • Displays both uncompressed and zipped sizes
  • Smart filtering (ignores stdlib and local packages)

Usage

Open any go.mod or .go file in a Go project and see the sizes displayed inline!

Example

import (
    "fmt"                              // stdlib - no size shown
    "github.com/gin-gonic/gin"         // 2.3M (zip: 450k)
)

Requirements

  • Go installed and available in PATH
  • Valid Go module project

Installation

  1. Open VS Code or click here
  2. Go to Extensions
  3. Search for: Go Import Cost
  4. Click Install
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft