pls

package
v0.2.793 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGopls added in v0.2.771

func FindGopls() (location string, err error)

func NewGopls

func NewGopls(ctx context.Context, log *zap.Logger, opts Options) (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
}

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