Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 2.44 KB

File metadata and controls

43 lines (26 loc) · 2.44 KB

GoTools

A GoLand / IntelliJ plugin that adds missing quality-of-life features for Go development.

Inlay Type Hints

Type hints for short variable declarations (:=), range clauses, const/var blocks — anywhere Go infers the type and doesn't show it.

Hints are clickable (navigate to type definition) and fully customizable:

Option Styles
Pointer prefix *int   ^int   &int   ptrOf int
Channel arrows <-chan / chan<-   ← chan / → chan / ⇄ chan   chan recv / chan send / chan bdir
Channel type brackets chan int   chan(int)   chan[int]   chan⟨int⟩
Generic brackets [T]   ⟨T⟩   <T>
Variadic / ellipsis ...       ~
Separator ,   |   ;
Function literal func(...)   ƒ(...)   (...)

Other settings: max hint length (long types get truncated), toggle type parameter rendering and their constraints, leading space.

inlay-hints-showcase.gif

Builder Pattern Generator

Alt+Enter or Cmd+. on any struct → Generate struct builder.

Generates a fluent builder: exported interface with With* methods, unexported implementation, constructor, and a B() terminal method. Supports generics.

Pick which fields to include from the standard GoLand member chooser dialog. Exported fields are unchecked by default (they're directly settable anyway).

generate-builder-demo.gif

Installation

From Marketplace (when published): Settings → Plugins → search "GoTools"

From disk: grab the .zip from Releases, then Settings → Plugins → ⚙ → Install from Disk

Requirements

GoLand 2025.3+ or IntelliJ IDEA 2025.3+ with Go plugin