pls

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGopls

func FindGopls() (location string, err error)

func GoplsVersion

func GoplsVersion(location string) (version string, err error)

GoplsVersion runs "gopls version" and returns the version string (e.g. "v0.21.1").

func NewGopls

func NewGopls(ctx context.Context, log *slog.Logger, opts Options) (location string, rwc io.ReadWriteCloser, err error)

NewGopls starts gopls and opens up a jsonrpc2 connection to it.

Types

type Options

type Options struct {
	Log      string
	RPCTrace bool
	Remote   string
}

Options for the gopls client.

func (Options) AsArguments

func (opts Options) AsArguments() []string

AsArguments converts the options into command line arguments for gopls.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL