type Support … var Supported … // OldestSupported is the last X in Go 1.X that this version of gopls // supports without warnings. // // Exported for testing. func OldestSupported() int { … } // Message returns the message to display if the user has the given Go // version, if any. The goVersion variable is the X in Go 1.X. If // fromBuild is set, the Go version is the version used to build // gopls. Otherwise, it is the go command version. // // The second component of the result indicates whether the message is // an error, not a mere warning. // // If goVersion is invalid (< 0), it returns "", false. func Message(goVersion int, fromBuild bool) (string, bool) { … }