Skip to content

v2.0.4

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Jul 18:18

go-struct-analyzer v2.0.4

Go struct field alignment analyzer with exact fieldalignment parity.
Ships as CLI (gsa-lsp analyze) and LSP server (gsa-lsp lsp) for
editor integration.

Full documentation: https://padiazg.github.io/go-struct-analyzer

Quick Start

  1. Install & verify the LSP server:

    go install github.com/padiazg/go-struct-analyzer/v2/cmd/gsa-lsp@v2.0.4
    gsa-lsp analyze struct.go            # CLI analysis
    gsa-lsp lsp                          # LSP mode (stdin/stdout)
  2. VS Code: install "Go Struct Analyzer" from the
    VS Code Marketplace
    or Open VSX.

  3. Other LSP editors (Neovim, Helix, etc.): configure gsa-lsp lsp
    as a language server — see docs for setup guides.

Changelog

Features

  • 5eb004d: feat!: migrate to Go LSP backend with exact fieldalignment parity (@padiazg)
  • dc548c9: feat(analyzer): replace pointer class heuristic with precise ptrdata (@padiazg)
  • 8ba48f1: feat(vscode): add server version check and migrate install to curl (@padiazg)

Others

Full Changelog: v1.2.0...v2.0.4

Docs: https://padiazg.github.io/go-struct-analyzer