gotools/gopls/internal/debug/info.go

type PrintMode

const PlainText

const Markdown

const HTML

const JSON

type ServerVersion

// VersionInfo returns the build info for the gopls process. If it was not
// built in module mode, we return a GOPATH-specific message with the
// hardcoded version.
func VersionInfo() *ServerVersion {}

// PrintServerInfo writes HTML debug info to w for the Instance.
func (i *Instance) PrintServerInfo(ctx context.Context, w io.Writer) {}

// PrintVersionInfo writes version information to w, using the output format
// specified by mode. verbose controls whether additional information is
// written, including section headers.
func PrintVersionInfo(_ context.Context, w io.Writer, verbose bool, mode PrintMode) error {}

func printVersionInfoJSON(w io.Writer, info *ServerVersion) error {}

func section(w io.Writer, mode PrintMode, title string, body func()) {}

func printBuildInfo(w io.Writer, info *ServerVersion, verbose bool, mode PrintMode) {}

func printModuleInfo(w io.Writer, m debug.Module, _ PrintMode) {}