mirror of
https://github.com/golang/go
synced 2024-10-01 07:28:35 -06:00
08e0b306e8
Also add a new rendering mode, and clean up the plain text one. Then use it to add an info page to to the server in debug mode. Change-Id: Ifa66a75260965d0e46e874200203ebbc4490e424 Reviewed-on: https://go-review.googlesource.com/c/tools/+/179497 Reviewed-by: Rebecca Stambler <rstambler@golang.org>
17 lines
370 B
Go
17 lines
370 B
Go
// Copyright 2019 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// +build !go1.12
|
|
|
|
package debug
|
|
|
|
import (
|
|
"fmt"
|
|
"io"
|
|
)
|
|
|
|
func printBuildInfo(w io.Writer, verbose bool, mode PrintMode) {
|
|
fmt.Fprintf(w, "no module information, gopls not built with go 1.11 or earlier\n")
|
|
}
|