VS Code Extensions
G

Go Template LSP

by yayolande

Go Template LSP support for VS Code with diagnostics, type checking, code navigation, hover, folding, and template dependency analysis.

Downloads

100

Rating

— (0)

Version

0.1.0

Last updated

Apr 04, 2026

Go template is incredible. But the lack of editor/IDE support is a crime. This makes the feedback loop between coding and bug detection a real challenge.

This LSP aims to tackle that issue. From now on, instantaneous diagnostics and type checking are a breeze.

You will never again need to download a dependency to replace the good and reliable standard text/template and html/template packages. Build with confidence :

  • SSR web apps
  • Static sites (Hugo, etc.)
  • Any project using Go templates

LSP in Action

Features

  • Diagnostics
  • Type system
  • Go To Definition
  • Hover
  • Folding Range
  • Dependency analysis of Template call

Installation

Afther installing the vscode extension, it is imperative to install the LSP next. Execute the command below in your terminal:

go install github.com/yayolande/go-template-lsp@latest

To learn more about other installation procedure, visit the official repository Similarly, to better learn the inner working of the type system, follow this small tutorial