module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: May 27, 2025
License: MIT
Opens a new window with license information.
README
¶
lsprotocol generator for go
This is a generator plugin for go using https://github.com/microsoft/lsprotocol.
Quickstart for using in a go project
go get github.com/myleshyson/lsprotocol-go@latest
import "github.com/myleshyson/lsprotocol-go/protocol"
var request protocol.InitializeRequest
All lsprotocol types are in the protocol package.
TODO
- Currently only types are provided. Would be nice to also provide utility functions for creating a request/response.
- the microsoft tests only test for proper unmarshalling. probably should add tests to make sure structs marshal correctly as well.
- I'm not a golang expert. There may be more efficient ways to do things like validation or tagged unions.
Directories
¶
Click to show internal directories.
Click to hide internal directories.